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

Side by Side Diff: chrome/browser/autofill/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 Nits 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 "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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698