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

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: copyright bumps 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 8cad9127aa0b919f9f6f4ea5237e6f32f933ca00..17fda03b0c27ff9c7bfe955434dfcd752e1b4d86 100644
--- a/chrome/browser/ui/webui/options2/content_settings_handler2.cc
+++ b/chrome/browser/ui/webui/options2/content_settings_handler2.cc
@@ -293,7 +293,7 @@ void ContentSettingsHandler::GetLocalizedValues(
switches::kDisableRestoreSessionState));
}
-void ContentSettingsHandler::Initialize() {
+void ContentSettingsHandler::InitializeHandler() {
notification_registrar_.Add(
this, chrome::NOTIFICATION_PROFILE_CREATED,
content::NotificationService::AllSources());
@@ -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::InitializePage() {
+ UpdateHandlersEnabledRadios();
+ UpdateAllExceptionsViewsFromModel();
+}
+
void ContentSettingsHandler::Observe(
int type,
const content::NotificationSource& source,
« no previous file with comments | « chrome/browser/ui/webui/options2/content_settings_handler2.h ('k') | chrome/browser/ui/webui/options2/core_options_handler2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698