| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |