Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8077)

Unified Diff: chrome/browser/ui/webui/options2/content_settings_handler2.cc

Issue 9693032: [uber page] Split up initialization of handlers from initialization of webui pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options2/content_settings_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/content_settings_handler2.cc b/chrome/browser/ui/webui/options2/content_settings_handler2.cc
index c5b771b5a51bd0fed1aa60343a963dcfc6331e35..b9f45e3a58643094c8d52d68293819d34fbf7233 100644
--- a/chrome/browser/ui/webui/options2/content_settings_handler2.cc
+++ b/chrome/browser/ui/webui/options2/content_settings_handler2.cc
@@ -301,8 +301,6 @@ void ContentSettingsHandler::Initialize() {
this, chrome::NOTIFICATION_PROFILE_DESTROYED,
content::NotificationService::AllSources());
- UpdateHandlersEnabledRadios();
- UpdateAllExceptionsViewsFromModel();
notification_registrar_.Add(
this, chrome::NOTIFICATION_CONTENT_SETTINGS_CHANGED,
content::NotificationService::AllSources());
@@ -319,6 +317,11 @@ void ContentSettingsHandler::Initialize() {
pref_change_registrar_.Add(prefs::kGeolocationContentSettings, this);
}
+void ContentSettingsHandler::SendPageValues() {
+ UpdateHandlersEnabledRadios();
+ UpdateAllExceptionsViewsFromModel();
+}
+
void ContentSettingsHandler::Observe(
int type,
const content::NotificationSource& source,

Powered by Google App Engine
This is Rietveld 408576698