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

Unified Diff: chrome/browser/ui/webui/options2/password_manager_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: copyright bumps 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/password_manager_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/password_manager_handler2.cc b/chrome/browser/ui/webui/options2/password_manager_handler2.cc
index 8ef1548738e5b5c5028b42528c4ba09005781d01..31d32bf3d23854b440fc0da988ac4af8efbd3b72 100644
--- a/chrome/browser/ui/webui/options2/password_manager_handler2.cc
+++ b/chrome/browser/ui/webui/options2/password_manager_handler2.cc
@@ -77,7 +77,7 @@ void PasswordManagerHandler::GetLocalizedValues(
chrome::kPasswordManagerLearnMoreURL);
}
-void PasswordManagerHandler::Initialize() {
+void PasswordManagerHandler::InitializeHandler() {
// Due to the way that handlers are (re)initialized under certain types of
// navigation, we may already be initialized. (See bugs 88986 and 86448.)
// If this is the case, return immediately. This is a hack.
@@ -195,7 +195,7 @@ void PasswordManagerHandler::SetPasswordList() {
// If this is the case, initialize on demand. This is a hack.
// TODO(mdm): remove this hack once it is no longer necessary.
if (show_passwords_.GetPrefName().empty())
- Initialize();
+ InitializeHandler();
ListValue entries;
bool show_passwords = *show_passwords_;

Powered by Google App Engine
This is Rietveld 408576698