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 | 8 |
9 #include <limits> | 9 #include <limits> |
10 #include <map> | 10 #include <map> |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 AutofillManager::~AutofillManager() {} | 168 AutofillManager::~AutofillManager() {} |
169 | 169 |
170 // static | 170 // static |
171 void AutofillManager::RegisterProfilePrefs( | 171 void AutofillManager::RegisterProfilePrefs( |
172 user_prefs::PrefRegistrySyncable* registry) { | 172 user_prefs::PrefRegistrySyncable* registry) { |
173 registry->RegisterBooleanPref( | 173 registry->RegisterBooleanPref( |
174 prefs::kAutofillEnabled, | 174 prefs::kAutofillEnabled, |
175 true, | 175 true, |
176 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 176 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
177 registry->RegisterBooleanPref( | 177 registry->RegisterBooleanPref( |
| 178 prefs::kAutofillWalletSyncExperimentEnabled, |
| 179 false, |
| 180 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 181 // TODO(estade): Should this be syncable? |
| 182 registry->RegisterBooleanPref( |
178 prefs::kAutofillWalletImportEnabled, | 183 prefs::kAutofillWalletImportEnabled, |
179 true, | 184 true, |
180 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 185 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
181 #if defined(OS_MACOSX) | 186 #if defined(OS_MACOSX) |
182 registry->RegisterBooleanPref( | 187 registry->RegisterBooleanPref( |
183 prefs::kAutofillAuxiliaryProfilesEnabled, | 188 prefs::kAutofillAuxiliaryProfilesEnabled, |
184 true, | 189 true, |
185 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 190 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
186 #else // defined(OS_MACOSX) | 191 #else // defined(OS_MACOSX) |
187 registry->RegisterBooleanPref( | 192 registry->RegisterBooleanPref( |
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 return false; | 1355 return false; |
1351 | 1356 |
1352 // Disregard forms that we wouldn't ever autofill in the first place. | 1357 // Disregard forms that we wouldn't ever autofill in the first place. |
1353 if (!form.ShouldBeParsed()) | 1358 if (!form.ShouldBeParsed()) |
1354 return false; | 1359 return false; |
1355 | 1360 |
1356 return true; | 1361 return true; |
1357 } | 1362 } |
1358 | 1363 |
1359 } // namespace autofill | 1364 } // namespace autofill |
OLD | NEW |