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