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