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

Unified Diff: chrome/browser/ui/webui/options/autofill_options_handler.cc

Issue 875243003: Add sync experiment flag for wallet datatype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 11 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/autofill_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.cc b/chrome/browser/ui/webui/options/autofill_options_handler.cc
index f564aa3ffd33c34452ad16c585ce39c532880afe..374337baf846d7b37cecb45737565854681b5d80 100644
--- a/chrome/browser/ui/webui/options/autofill_options_handler.cc
+++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc
@@ -332,13 +332,16 @@ void AutofillOptionsHandler::GetLocalizedValues(
IDS_AUTOFILL_OPTIONS_TITLE);
localized_strings->SetString("helpUrl", autofill::kHelpURL);
+
+ personal_data_ = autofill::PersonalDataManagerFactory::GetForProfile(
+ Profile::FromWebUI(web_ui()));
+
SetAddressOverlayStrings(localized_strings);
SetCreditCardOverlayStrings(localized_strings);
localized_strings->SetBoolean(
"enableAutofillWalletIntegration",
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- autofill::switches::kEnableWalletCardImport));
+ personal_data_->IsExperimentalWalletIntegrationEnabled());
localized_strings->SetString(
"manageWalletAddressesUrl",
autofill::wallet::GetManageAddressesUrl(0).spec());
@@ -359,9 +362,6 @@ void AutofillOptionsHandler::InitializePage() {
}
void AutofillOptionsHandler::RegisterMessages() {
- personal_data_ = autofill::PersonalDataManagerFactory::GetForProfile(
- Profile::FromWebUI(web_ui()));
-
#if defined(OS_MACOSX) && !defined(OS_IOS)
web_ui()->RegisterMessageCallback(
"accessAddressBook",
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | components/autofill/core/browser/autofill_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698