Settings: Stop repopulate the all sites list on permission changes.

Currently on permission changes, the all sites list will be
re-populated. This is a issue when we reset the permission for an
etld+1. Because this resets every single permission settings for all the
origins under the etld+1, which triggers 16*n (n=number of origins) on
permission changes, therefore makes the all sites list repopulate that
many time. This affect the performance, also make the list jump back to
the top and lost the last selected entry. This CL removes the event
listener for permission change in all sites page. In the future, we
should implement the similar banner with reload when permission changes
from other places (not all sites page) occurs.


Change-Id: I54596b1ba7d9901bdcd3ddd2192c1a0973aa5acf
Reviewed-by: Steven Bennetts <>
Commit-Queue: Maggie Cai <>
Cr-Commit-Position: refs/heads/master@{#637608}
1 file changed