| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 AutofillManager::~AutofillManager() {} | 173 AutofillManager::~AutofillManager() {} |
| 174 | 174 |
| 175 // static | 175 // static |
| 176 void AutofillManager::RegisterProfilePrefs( | 176 void AutofillManager::RegisterProfilePrefs( |
| 177 user_prefs::PrefRegistrySyncable* registry) { | 177 user_prefs::PrefRegistrySyncable* registry) { |
| 178 registry->RegisterBooleanPref( | 178 registry->RegisterBooleanPref( |
| 179 prefs::kAutofillEnabled, | 179 prefs::kAutofillEnabled, |
| 180 true, | 180 true, |
| 181 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 181 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 182 registry->RegisterBooleanPref(prefs::kAutofillWalletSyncExperimentEnabled, | |
| 183 false); | |
| 184 // TODO(estade): Should this be syncable? | 182 // TODO(estade): Should this be syncable? |
| 185 registry->RegisterBooleanPref( | 183 registry->RegisterBooleanPref( |
| 186 prefs::kAutofillWalletImportEnabled, | 184 prefs::kAutofillWalletImportEnabled, |
| 187 true, | 185 true, |
| 188 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 186 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 189 // This choice is made on a per-device basis, so it's not syncable. | 187 // This choice is made on a per-device basis, so it's not syncable. |
| 190 registry->RegisterBooleanPref( | 188 registry->RegisterBooleanPref( |
| 191 prefs::kAutofillWalletImportStorageCheckboxState, true); | 189 prefs::kAutofillWalletImportStorageCheckboxState, true); |
| 192 } | 190 } |
| 193 | 191 |
| (...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1831 if (i > 0) | 1829 if (i > 0) |
| 1832 fputs("Next oldest form:\n", file); | 1830 fputs("Next oldest form:\n", file); |
| 1833 } | 1831 } |
| 1834 fputs("\n", file); | 1832 fputs("\n", file); |
| 1835 | 1833 |
| 1836 fclose(file); | 1834 fclose(file); |
| 1837 } | 1835 } |
| 1838 #endif // ENABLE_FORM_DEBUG_DUMP | 1836 #endif // ENABLE_FORM_DEBUG_DUMP |
| 1839 | 1837 |
| 1840 } // namespace autofill | 1838 } // namespace autofill |
| OLD | NEW |