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

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

Issue 2077003002: [Autofill] Fix profiles with bad |use_date| values. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 1line fix Created 4 years, 6 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 | components/autofill/core/browser/personal_data_manager.h » ('j') | 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 AutofillManager::~AutofillManager() {} 219 AutofillManager::~AutofillManager() {}
220 220
221 // static 221 // static
222 void AutofillManager::RegisterProfilePrefs( 222 void AutofillManager::RegisterProfilePrefs(
223 user_prefs::PrefRegistrySyncable* registry) { 223 user_prefs::PrefRegistrySyncable* registry) {
224 registry->RegisterBooleanPref( 224 registry->RegisterBooleanPref(
225 prefs::kAutofillEnabled, 225 prefs::kAutofillEnabled,
226 true, 226 true,
227 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 227 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
228 registry->RegisterBooleanPref(
229 prefs::kAutofillProfileUseDatesFixed, false,
230 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
228 // These choices are made on a per-device basis, so they're not syncable. 231 // These choices are made on a per-device basis, so they're not syncable.
229 registry->RegisterBooleanPref(prefs::kAutofillWalletImportEnabled, true); 232 registry->RegisterBooleanPref(prefs::kAutofillWalletImportEnabled, true);
230 registry->RegisterBooleanPref( 233 registry->RegisterBooleanPref(
231 prefs::kAutofillWalletImportStorageCheckboxState, true); 234 prefs::kAutofillWalletImportStorageCheckboxState, true);
232 } 235 }
233 236
234 void AutofillManager::SetExternalDelegate(AutofillExternalDelegate* delegate) { 237 void AutofillManager::SetExternalDelegate(AutofillExternalDelegate* delegate) {
235 // TODO(jrg): consider passing delegate into the ctor. That won't 238 // TODO(jrg): consider passing delegate into the ctor. That won't
236 // work if the delegate has a pointer to the AutofillManager, but 239 // work if the delegate has a pointer to the AutofillManager, but
237 // future directions may not need such a pointer. 240 // future directions may not need such a pointer.
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after
1993 if (i > 0) 1996 if (i > 0)
1994 fputs("Next oldest form:\n", file); 1997 fputs("Next oldest form:\n", file);
1995 } 1998 }
1996 fputs("\n", file); 1999 fputs("\n", file);
1997 2000
1998 fclose(file); 2001 fclose(file);
1999 } 2002 }
2000 #endif // ENABLE_FORM_DEBUG_DUMP 2003 #endif // ENABLE_FORM_DEBUG_DUMP
2001 2004
2002 } // namespace autofill 2005 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/personal_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698