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

Unified Diff: chrome/browser/ui/webui/options2/autofill_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: 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/autofill_options_handler2.cc
diff --git a/chrome/browser/ui/webui/options2/autofill_options_handler2.cc b/chrome/browser/ui/webui/options2/autofill_options_handler2.cc
index 6c92a0daa1fdd669ac4c8f729547c592c8cc03ca..8d1374e3c16aca5dc1224cb56726bf1710ebd0bb 100644
--- a/chrome/browser/ui/webui/options2/autofill_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/autofill_options_handler2.cc
@@ -301,14 +301,17 @@ void AutofillOptionsHandler::GetLocalizedValues(
SetCreditCardOverlayStrings(localized_strings);
}
-void AutofillOptionsHandler::Initialize() {
+void AutofillOptionsHandler::InitializeHandler() {
personal_data_ = PersonalDataManagerFactory::GetForProfile(
Profile::FromWebUI(web_ui()));
// personal_data_ is NULL in guest mode on Chrome OS.
- if (personal_data_) {
+ if (personal_data_)
personal_data_->SetObserver(this);
+}
+
+void AutofillOptionsHandler::InitializePage() {
+ if (personal_data_)
LoadAutofillData();
- }
}
void AutofillOptionsHandler::RegisterMessages() {

Powered by Google App Engine
This is Rietveld 408576698