Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(643)

Side by Side Diff: components/autofill/browser/autofill_manager.cc

Issue 12282004: Added personal_data_manager android implementation for auto-populating auto-fill on android builds … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed autogenerated nits from trybot Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698