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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 } | 221 } |
222 | 222 |
223 // static | 223 // static |
224 void AutofillManager::RegisterUserPrefs(PrefRegistrySyncable* registry) { | 224 void AutofillManager::RegisterUserPrefs(PrefRegistrySyncable* registry) { |
225 registry->RegisterBooleanPref(prefs::kAutofillEnabled, | 225 registry->RegisterBooleanPref(prefs::kAutofillEnabled, |
226 true, | 226 true, |
227 PrefRegistrySyncable::SYNCABLE_PREF); | 227 PrefRegistrySyncable::SYNCABLE_PREF); |
228 registry->RegisterBooleanPref(prefs::kPasswordGenerationEnabled, | 228 registry->RegisterBooleanPref(prefs::kPasswordGenerationEnabled, |
229 true, | 229 true, |
230 PrefRegistrySyncable::SYNCABLE_PREF); | 230 PrefRegistrySyncable::SYNCABLE_PREF); |
231 #if defined(OS_MACOSX) | 231 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
232 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, | 232 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, |
233 true, | 233 true, |
234 PrefRegistrySyncable::SYNCABLE_PREF); | 234 PrefRegistrySyncable::SYNCABLE_PREF); |
235 #else | 235 #else |
236 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, | 236 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, |
237 false, | 237 false, |
238 PrefRegistrySyncable::UNSYNCABLE_PREF); | 238 PrefRegistrySyncable::UNSYNCABLE_PREF); |
239 #endif | 239 #endif |
240 registry->RegisterDoublePref(prefs::kAutofillPositiveUploadRate, | 240 registry->RegisterDoublePref(prefs::kAutofillPositiveUploadRate, |
241 kAutofillPositiveUploadRateDefaultValue, | 241 kAutofillPositiveUploadRateDefaultValue, |
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 *profile_guid = IDToGUID(profile_id); | 1313 *profile_guid = IDToGUID(profile_id); |
1314 } | 1314 } |
1315 | 1315 |
1316 void AutofillManager::UpdateInitialInteractionTimestamp( | 1316 void AutofillManager::UpdateInitialInteractionTimestamp( |
1317 const TimeTicks& interaction_timestamp) { | 1317 const TimeTicks& interaction_timestamp) { |
1318 if (initial_interaction_timestamp_.is_null() || | 1318 if (initial_interaction_timestamp_.is_null() || |
1319 interaction_timestamp < initial_interaction_timestamp_) { | 1319 interaction_timestamp < initial_interaction_timestamp_) { |
1320 initial_interaction_timestamp_ = interaction_timestamp; | 1320 initial_interaction_timestamp_ = interaction_timestamp; |
1321 } | 1321 } |
1322 } | 1322 } |
OLD | NEW |