| OLD | NEW |
| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( | 228 registry->RegisterBooleanPref( |
| 229 prefs::kAutofillProfileUseDatesFixed, false, | 229 prefs::kAutofillProfileUseDatesFixed, false, |
| 230 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 230 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 231 registry->RegisterIntegerPref( |
| 232 prefs::kAutofillLastVersionDeduped, 0, |
| 233 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 231 // These choices are made on a per-device basis, so they're not syncable. | 234 // These choices are made on a per-device basis, so they're not syncable. |
| 232 registry->RegisterBooleanPref(prefs::kAutofillWalletImportEnabled, true); | 235 registry->RegisterBooleanPref(prefs::kAutofillWalletImportEnabled, true); |
| 233 registry->RegisterBooleanPref( | 236 registry->RegisterBooleanPref( |
| 234 prefs::kAutofillWalletImportStorageCheckboxState, true); | 237 prefs::kAutofillWalletImportStorageCheckboxState, true); |
| 235 } | 238 } |
| 236 | 239 |
| 237 void AutofillManager::SetExternalDelegate(AutofillExternalDelegate* delegate) { | 240 void AutofillManager::SetExternalDelegate(AutofillExternalDelegate* delegate) { |
| 238 // TODO(jrg): consider passing delegate into the ctor. That won't | 241 // TODO(jrg): consider passing delegate into the ctor. That won't |
| 239 // work if the delegate has a pointer to the AutofillManager, but | 242 // work if the delegate has a pointer to the AutofillManager, but |
| 240 // future directions may not need such a pointer. | 243 // future directions may not need such a pointer. |
| (...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1996 if (i > 0) | 1999 if (i > 0) |
| 1997 fputs("Next oldest form:\n", file); | 2000 fputs("Next oldest form:\n", file); |
| 1998 } | 2001 } |
| 1999 fputs("\n", file); | 2002 fputs("\n", file); |
| 2000 | 2003 |
| 2001 fclose(file); | 2004 fclose(file); |
| 2002 } | 2005 } |
| 2003 #endif // ENABLE_FORM_DEBUG_DUMP | 2006 #endif // ENABLE_FORM_DEBUG_DUMP |
| 2004 | 2007 |
| 2005 } // namespace autofill | 2008 } // namespace autofill |
| OLD | NEW |