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

Unified Diff: chrome/browser/ui/webui/options2/manage_profile_handler2.cc

Issue 9994005: Separate handler initialization from page initialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move anything that indirectly calls JS to InitializePage 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/options2/manage_profile_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/manage_profile_handler2.cc b/chrome/browser/ui/webui/options2/manage_profile_handler2.cc
index ade3ca7b8984555630b5ace49f4a8abe03b1711f..ecbba9eadbb2c8920d4d0d36ef8d03eb4ac1bbfc 100644
--- a/chrome/browser/ui/webui/options2/manage_profile_handler2.cc
+++ b/chrome/browser/ui/webui/options2/manage_profile_handler2.cc
@@ -52,12 +52,9 @@ void ManageProfileHandler::GetLocalizedValues(
IDS_PROFILES_MANAGE_TITLE);
}
-void ManageProfileHandler::InitializeHandler() {
+void ManageProfileHandler::InitializePage() {
registrar_.Add(this, chrome::NOTIFICATION_PROFILE_CACHED_INFO_CHANGED,
content::NotificationService::AllSources());
-}
-
-void ManageProfileHandler::InitializePage() {
SendProfileNames();
}

Powered by Google App Engine
This is Rietveld 408576698