| 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 AutofillManager::~AutofillManager() {} | 218 AutofillManager::~AutofillManager() {} |
| 219 | 219 |
| 220 // static | 220 // static |
| 221 void AutofillManager::RegisterUserPrefs(PrefRegistrySyncable* registry) { | 221 void AutofillManager::RegisterUserPrefs(PrefRegistrySyncable* registry) { |
| 222 registry->RegisterBooleanPref(prefs::kAutofillEnabled, | 222 registry->RegisterBooleanPref(prefs::kAutofillEnabled, |
| 223 true, | 223 true, |
| 224 PrefRegistrySyncable::SYNCABLE_PREF); | 224 PrefRegistrySyncable::SYNCABLE_PREF); |
| 225 registry->RegisterBooleanPref(prefs::kPasswordGenerationEnabled, | 225 registry->RegisterBooleanPref(prefs::kPasswordGenerationEnabled, |
| 226 true, | 226 true, |
| 227 PrefRegistrySyncable::SYNCABLE_PREF); | 227 PrefRegistrySyncable::SYNCABLE_PREF); |
| 228 #if defined(OS_MACOSX) | 228 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 229 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, | 229 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, |
| 230 true, | 230 true, |
| 231 PrefRegistrySyncable::SYNCABLE_PREF); | 231 PrefRegistrySyncable::SYNCABLE_PREF); |
| 232 #else | 232 #else |
| 233 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, | 233 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, |
| 234 false, | 234 false, |
| 235 PrefRegistrySyncable::UNSYNCABLE_PREF); | 235 PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 236 #endif | 236 #endif |
| 237 registry->RegisterDoublePref(prefs::kAutofillPositiveUploadRate, | 237 registry->RegisterDoublePref(prefs::kAutofillPositiveUploadRate, |
| 238 kAutofillPositiveUploadRateDefaultValue, | 238 kAutofillPositiveUploadRateDefaultValue, |
| (...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 *profile_guid = IDToGUID(profile_id); | 1327 *profile_guid = IDToGUID(profile_id); |
| 1328 } | 1328 } |
| 1329 | 1329 |
| 1330 void AutofillManager::UpdateInitialInteractionTimestamp( | 1330 void AutofillManager::UpdateInitialInteractionTimestamp( |
| 1331 const TimeTicks& interaction_timestamp) { | 1331 const TimeTicks& interaction_timestamp) { |
| 1332 if (initial_interaction_timestamp_.is_null() || | 1332 if (initial_interaction_timestamp_.is_null() || |
| 1333 interaction_timestamp < initial_interaction_timestamp_) { | 1333 interaction_timestamp < initial_interaction_timestamp_) { |
| 1334 initial_interaction_timestamp_ = interaction_timestamp; | 1334 initial_interaction_timestamp_ = interaction_timestamp; |
| 1335 } | 1335 } |
| 1336 } | 1336 } |
| OLD | NEW |