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

Side by Side Diff: components/autofill/core/browser/autofill_manager.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, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/core/browser/autofill_manager.h" 5 #include "components/autofill/core/browser/autofill_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <map> 10 #include <map>
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 AutofillManager::~AutofillManager() {} 168 AutofillManager::~AutofillManager() {}
169 169
170 // static 170 // static
171 void AutofillManager::RegisterProfilePrefs( 171 void AutofillManager::RegisterProfilePrefs(
172 user_prefs::PrefRegistrySyncable* registry) { 172 user_prefs::PrefRegistrySyncable* registry) {
173 registry->RegisterBooleanPref( 173 registry->RegisterBooleanPref(
174 prefs::kAutofillEnabled, 174 prefs::kAutofillEnabled,
175 true, 175 true,
176 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 176 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
177 registry->RegisterBooleanPref( 177 registry->RegisterBooleanPref(
178 prefs::kAutofillWalletSyncExperimentEnabled,
179 false,
180 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
181 // TODO(estade): Should this be syncable?
182 registry->RegisterBooleanPref(
178 prefs::kAutofillWalletImportEnabled, 183 prefs::kAutofillWalletImportEnabled,
179 true, 184 true,
180 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 185 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
181 #if defined(OS_MACOSX) 186 #if defined(OS_MACOSX)
182 registry->RegisterBooleanPref( 187 registry->RegisterBooleanPref(
183 prefs::kAutofillAuxiliaryProfilesEnabled, 188 prefs::kAutofillAuxiliaryProfilesEnabled,
184 true, 189 true,
185 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 190 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
186 #else // defined(OS_MACOSX) 191 #else // defined(OS_MACOSX)
187 registry->RegisterBooleanPref( 192 registry->RegisterBooleanPref(
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 return false; 1355 return false;
1351 1356
1352 // Disregard forms that we wouldn't ever autofill in the first place. 1357 // Disregard forms that we wouldn't ever autofill in the first place.
1353 if (!form.ShouldBeParsed()) 1358 if (!form.ShouldBeParsed())
1354 return false; 1359 return false;
1355 1360
1356 return true; 1361 return true;
1357 } 1362 }
1358 1363
1359 } // namespace autofill 1364 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/autofill_options_handler.cc ('k') | components/autofill/core/browser/personal_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698