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, |