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

Side by Side Diff: components/autofill/core/browser/autofill_manager.cc

Issue 1841253002: Stop syncing the autofill.wallet_import_enabled pref. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 AutofillManager::~AutofillManager() {} 212 AutofillManager::~AutofillManager() {}
213 213
214 // static 214 // static
215 void AutofillManager::RegisterProfilePrefs( 215 void AutofillManager::RegisterProfilePrefs(
216 user_prefs::PrefRegistrySyncable* registry) { 216 user_prefs::PrefRegistrySyncable* registry) {
217 registry->RegisterBooleanPref( 217 registry->RegisterBooleanPref(
218 prefs::kAutofillEnabled, 218 prefs::kAutofillEnabled,
219 true, 219 true,
220 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 220 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
221 // TODO(estade): Should this be syncable? 221 // These choices are made on a per-device basis, so they're not syncable.
222 registry->RegisterBooleanPref( 222 registry->RegisterBooleanPref(prefs::kAutofillWalletImportEnabled, true);
223 prefs::kAutofillWalletImportEnabled,
224 true,
225 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
226 // This choice is made on a per-device basis, so it's not syncable.
227 registry->RegisterBooleanPref( 223 registry->RegisterBooleanPref(
228 prefs::kAutofillWalletImportStorageCheckboxState, true); 224 prefs::kAutofillWalletImportStorageCheckboxState, true);
229 } 225 }
230 226
231 void AutofillManager::SetExternalDelegate(AutofillExternalDelegate* delegate) { 227 void AutofillManager::SetExternalDelegate(AutofillExternalDelegate* delegate) {
232 // TODO(jrg): consider passing delegate into the ctor. That won't 228 // TODO(jrg): consider passing delegate into the ctor. That won't
233 // work if the delegate has a pointer to the AutofillManager, but 229 // work if the delegate has a pointer to the AutofillManager, but
234 // future directions may not need such a pointer. 230 // future directions may not need such a pointer.
235 external_delegate_ = delegate; 231 external_delegate_ = delegate;
236 autocomplete_history_manager_->SetExternalDelegate(delegate); 232 autocomplete_history_manager_->SetExternalDelegate(delegate);
(...skipping 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 if (i > 0) 1998 if (i > 0)
2003 fputs("Next oldest form:\n", file); 1999 fputs("Next oldest form:\n", file);
2004 } 2000 }
2005 fputs("\n", file); 2001 fputs("\n", file);
2006 2002
2007 fclose(file); 2003 fclose(file);
2008 } 2004 }
2009 #endif // ENABLE_FORM_DEBUG_DUMP 2005 #endif // ENABLE_FORM_DEBUG_DUMP
2010 2006
2011 } // namespace autofill 2007 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698