Index: chrome/browser/ui/webui/options2/handler_options_handler2.cc |
diff --git a/chrome/browser/ui/webui/options2/handler_options_handler2.cc b/chrome/browser/ui/webui/options2/handler_options_handler2.cc |
index 275a176cc99d3362a23a7d785afd4b6e484e1280..0696b76b70302821bd81be49e0e8e05299e553bb 100644 |
--- a/chrome/browser/ui/webui/options2/handler_options_handler2.cc |
+++ b/chrome/browser/ui/webui/options2/handler_options_handler2.cc |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -45,13 +45,16 @@ void HandlerOptionsHandler::GetLocalizedValues( |
RegisterStrings(localized_strings, resources, arraysize(resources)); |
} |
-void HandlerOptionsHandler::Initialize() { |
- UpdateHandlerList(); |
+void HandlerOptionsHandler::InitializeHandler() { |
notification_registrar_.Add( |
this, chrome::NOTIFICATION_PROTOCOL_HANDLER_REGISTRY_CHANGED, |
content::Source<Profile>(Profile::FromWebUI(web_ui()))); |
} |
+void HandlerOptionsHandler::InitializePage() { |
+ UpdateHandlerList(); |
+} |
+ |
void HandlerOptionsHandler::RegisterMessages() { |
web_ui()->RegisterMessageCallback("clearDefault", |
base::Bind(&HandlerOptionsHandler::ClearDefault, |