| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 166 |
| 167 AutofillManager::~AutofillManager() {} | 167 AutofillManager::~AutofillManager() {} |
| 168 | 168 |
| 169 // static | 169 // static |
| 170 void AutofillManager::RegisterProfilePrefs( | 170 void AutofillManager::RegisterProfilePrefs( |
| 171 user_prefs::PrefRegistrySyncable* registry) { | 171 user_prefs::PrefRegistrySyncable* registry) { |
| 172 registry->RegisterBooleanPref( | 172 registry->RegisterBooleanPref( |
| 173 prefs::kAutofillEnabled, | 173 prefs::kAutofillEnabled, |
| 174 true, | 174 true, |
| 175 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 175 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 176 registry->RegisterBooleanPref( |
| 177 prefs::kAutofillWalletImportEnabled, |
| 178 true, |
| 179 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 176 #if defined(OS_MACOSX) | 180 #if defined(OS_MACOSX) |
| 177 registry->RegisterBooleanPref( | 181 registry->RegisterBooleanPref( |
| 178 prefs::kAutofillAuxiliaryProfilesEnabled, | 182 prefs::kAutofillAuxiliaryProfilesEnabled, |
| 179 true, | 183 true, |
| 180 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 184 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
| 181 #else // defined(OS_MACOSX) | 185 #else // defined(OS_MACOSX) |
| 182 registry->RegisterBooleanPref( | 186 registry->RegisterBooleanPref( |
| 183 prefs::kAutofillAuxiliaryProfilesEnabled, | 187 prefs::kAutofillAuxiliaryProfilesEnabled, |
| 184 false, | 188 false, |
| 185 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 189 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| (...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 return false; | 1325 return false; |
| 1322 | 1326 |
| 1323 // Disregard forms that we wouldn't ever autofill in the first place. | 1327 // Disregard forms that we wouldn't ever autofill in the first place. |
| 1324 if (!form.ShouldBeParsed()) | 1328 if (!form.ShouldBeParsed()) |
| 1325 return false; | 1329 return false; |
| 1326 | 1330 |
| 1327 return true; | 1331 return true; |
| 1328 } | 1332 } |
| 1329 | 1333 |
| 1330 } // namespace autofill | 1334 } // namespace autofill |
| OLD | NEW |