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

Unified Diff: chrome/browser/ui/webui/options2/handler_options_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/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..ba4df904451d651efae45dd39c1b7c207e48f0a9 100644
--- a/chrome/browser/ui/webui/options2/handler_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/handler_options_handler2.cc
@@ -46,12 +46,15 @@ void HandlerOptionsHandler::GetLocalizedValues(
}
void HandlerOptionsHandler::Initialize() {
- UpdateHandlerList();
notification_registrar_.Add(
this, chrome::NOTIFICATION_PROTOCOL_HANDLER_REGISTRY_CHANGED,
content::Source<Profile>(Profile::FromWebUI(web_ui())));
}
+void HandlerOptionsHandler::SendPageValues() {
+ UpdateHandlerList();
+}
+
void HandlerOptionsHandler::RegisterMessages() {
web_ui()->RegisterMessageCallback("clearDefault",
base::Bind(&HandlerOptionsHandler::ClearDefault,

Powered by Google App Engine
This is Rietveld 408576698