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

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: Created 7 years, 10 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 } 229 }
230 230
231 // static 231 // static
232 void AutofillManager::RegisterUserPrefs(PrefRegistrySyncable* registry) { 232 void AutofillManager::RegisterUserPrefs(PrefRegistrySyncable* registry) {
233 registry->RegisterBooleanPref(prefs::kAutofillEnabled, 233 registry->RegisterBooleanPref(prefs::kAutofillEnabled,
234 true, 234 true,
235 PrefRegistrySyncable::SYNCABLE_PREF); 235 PrefRegistrySyncable::SYNCABLE_PREF);
236 registry->RegisterBooleanPref(prefs::kPasswordGenerationEnabled, 236 registry->RegisterBooleanPref(prefs::kPasswordGenerationEnabled,
237 true, 237 true,
238 PrefRegistrySyncable::SYNCABLE_PREF); 238 PrefRegistrySyncable::SYNCABLE_PREF);
239 #if defined(OS_MACOSX) 239 #if defined(OS_MACOSX) || defined(OS_ANDROID)
240 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, 240 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled,
241 true, 241 true,
242 PrefRegistrySyncable::SYNCABLE_PREF); 242 PrefRegistrySyncable::SYNCABLE_PREF);
aurimas (slooooooooow) 2013/02/15 19:16:13 Can you ask nyquist@ if we sync these prefs for An
nyquist 2013/02/19 19:34:22 Android does not sync the preferences datatype. Bu
apiccion 2013/02/26 23:51:51 Done.
243 #else 243 #else
244 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled, 244 registry->RegisterBooleanPref(prefs::kAutofillAuxiliaryProfilesEnabled,
245 false, 245 false,
246 PrefRegistrySyncable::UNSYNCABLE_PREF); 246 PrefRegistrySyncable::UNSYNCABLE_PREF);
247 #endif 247 #endif
248 registry->RegisterDoublePref(prefs::kAutofillPositiveUploadRate, 248 registry->RegisterDoublePref(prefs::kAutofillPositiveUploadRate,
249 kAutofillPositiveUploadRateDefaultValue, 249 kAutofillPositiveUploadRateDefaultValue,
250 PrefRegistrySyncable::UNSYNCABLE_PREF); 250 PrefRegistrySyncable::UNSYNCABLE_PREF);
251 registry->RegisterDoublePref(prefs::kAutofillNegativeUploadRate, 251 registry->RegisterDoublePref(prefs::kAutofillNegativeUploadRate,
252 kAutofillNegativeUploadRateDefaultValue, 252 kAutofillNegativeUploadRateDefaultValue,
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
1323 *profile_guid = IDToGUID(profile_id); 1323 *profile_guid = IDToGUID(profile_id);
1324 } 1324 }
1325 1325
1326 void AutofillManager::UpdateInitialInteractionTimestamp( 1326 void AutofillManager::UpdateInitialInteractionTimestamp(
1327 const TimeTicks& interaction_timestamp) { 1327 const TimeTicks& interaction_timestamp) {
1328 if (initial_interaction_timestamp_.is_null() || 1328 if (initial_interaction_timestamp_.is_null() ||
1329 interaction_timestamp < initial_interaction_timestamp_) { 1329 interaction_timestamp < initial_interaction_timestamp_) {
1330 initial_interaction_timestamp_ = interaction_timestamp; 1330 initial_interaction_timestamp_ = interaction_timestamp;
1331 } 1331 }
1332 } 1332 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698