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

Unified Diff: chrome/browser/ui/webui/help/help_handler.cc

Issue 10154004: re-use WebUIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix reload DCHECKs Created 8 years, 8 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/help/help_handler.cc
diff --git a/chrome/browser/ui/webui/help/help_handler.cc b/chrome/browser/ui/webui/help/help_handler.cc
index 6f3a246be2f659665f21efb848e254bb3cae6b65..ab3d4b58c482c80e2dccb3ed9ef5b1e8db4e131f 100644
--- a/chrome/browser/ui/webui/help/help_handler.cc
+++ b/chrome/browser/ui/webui/help/help_handler.cc
@@ -185,6 +185,9 @@ void HelpHandler::GetLocalizedValues(DictionaryValue* localized_strings) {
}
void HelpHandler::RegisterMessages() {
+ registrar_.Add(this, chrome::NOTIFICATION_UPGRADE_RECOMMENDED,
+ content::NotificationService::AllSources());
stuartmorgan 2012/04/24 09:12:20 Why this change in ordering? If it's important, it
Evan Stade 2012/04/24 17:52:40 change in ordering? it's now in a different functi
stuartmorgan 2012/04/24 19:20:03 Sorry, totally spaced on the elided lines in the r
+
web_ui()->RegisterMessageCallback("onPageLoaded",
base::Bind(&HelpHandler::OnPageLoaded, base::Unretained(this)));
web_ui()->RegisterMessageCallback("relaunchNow",
@@ -248,9 +251,6 @@ void HelpHandler::OnPageLoaded(const ListValue* args) {
version_updater_->GetReleaseChannel(
base::Bind(&HelpHandler::OnReleaseChannel, base::Unretained(this)));
#endif
-
- registrar_.Add(this, chrome::NOTIFICATION_UPGRADE_RECOMMENDED,
- content::NotificationService::AllSources());
}
#if defined(OS_MACOSX)

Powered by Google App Engine
This is Rietveld 408576698