| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/autofill_manager.h" | 5 #include "components/autofill/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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 } | 220 } |
| 221 | 221 |
| 222 // static | 222 // static |
| 223 void AutofillManager::RegisterUserPrefs(PrefRegistrySyncable* registry) { | 223 void AutofillManager::RegisterUserPrefs(PrefRegistrySyncable* registry) { |
| 224 registry->RegisterBooleanPref(prefs::kAutofillEnabled, | 224 registry->RegisterBooleanPref(prefs::kAutofillEnabled, |
| 225 true, | 225 true, |
| 226 PrefRegistrySyncable::SYNCABLE_PREF); | 226 PrefRegistrySyncable::SYNCABLE_PREF); |
| 227 registry->RegisterBooleanPref(prefs::kPasswordGenerationEnabled, | 227 registry->RegisterBooleanPref(prefs::kPasswordGenerationEnabled, |
| 228 true, | 228 true, |
| 229 PrefRegistrySyncable::SYNCABLE_PREF); | 229 PrefRegistrySyncable::SYNCABLE_PREF); |
| 230 #if defined(OS_MACOSX) | 230 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 231 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, | 231 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, |
| 232 true, | 232 true, |
| 233 PrefRegistrySyncable::SYNCABLE_PREF); | 233 PrefRegistrySyncable::SYNCABLE_PREF); |
| 234 #else | 234 #else |
| 235 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, | 235 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, |
| 236 false, | 236 false, |
| 237 PrefRegistrySyncable::UNSYNCABLE_PREF); | 237 PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 238 #endif | 238 #endif |
| 239 registry->RegisterDoublePref(prefs::kAutofillPositiveUploadRate, | 239 registry->RegisterDoublePref(prefs::kAutofillPositiveUploadRate, |
| 240 kAutofillPositiveUploadRateDefaultValue, | 240 kAutofillPositiveUploadRateDefaultValue, |
| (...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1318 *profile_guid = IDToGUID(profile_id); | 1318 *profile_guid = IDToGUID(profile_id); |
| 1319 } | 1319 } |
| 1320 | 1320 |
| 1321 void AutofillManager::UpdateInitialInteractionTimestamp( | 1321 void AutofillManager::UpdateInitialInteractionTimestamp( |
| 1322 const TimeTicks& interaction_timestamp) { | 1322 const TimeTicks& interaction_timestamp) { |
| 1323 if (initial_interaction_timestamp_.is_null() || | 1323 if (initial_interaction_timestamp_.is_null() || |
| 1324 interaction_timestamp < initial_interaction_timestamp_) { | 1324 interaction_timestamp < initial_interaction_timestamp_) { |
| 1325 initial_interaction_timestamp_ = interaction_timestamp; | 1325 initial_interaction_timestamp_ = interaction_timestamp; |
| 1326 } | 1326 } |
| 1327 } | 1327 } |
| OLD | NEW |