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

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: 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..1398305f1a217a8b838ab6fdb7191c4c5e237093 100644
--- a/chrome/browser/ui/webui/options2/autofill_options_handler2.cc
+++ b/chrome/browser/ui/webui/options2/autofill_options_handler2.cc
@@ -305,10 +305,13 @@ void AutofillOptionsHandler::Initialize() {
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::SendPageValues() {
+ if (personal_data_)
LoadAutofillData();
- }
}
void AutofillOptionsHandler::RegisterMessages() {

Powered by Google App Engine
This is Rietveld 408576698