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

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

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment addressed. Created 7 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/core/browser/autofill_manager.h" 5 #include "components/autofill/core/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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) { 204 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) {
205 download_manager_.reset( 205 download_manager_.reset(
206 new AutofillDownloadManager( 206 new AutofillDownloadManager(
207 driver->GetWebContents()->GetBrowserContext(), this)); 207 driver->GetWebContents()->GetBrowserContext(), this));
208 } 208 }
209 } 209 }
210 210
211 AutofillManager::~AutofillManager() {} 211 AutofillManager::~AutofillManager() {}
212 212
213 // static 213 // static
214 void AutofillManager::RegisterUserPrefs( 214 void AutofillManager::RegisterProfilePrefs(
215 user_prefs::PrefRegistrySyncable* registry) { 215 user_prefs::PrefRegistrySyncable* registry) {
216 registry->RegisterBooleanPref( 216 registry->RegisterBooleanPref(
217 prefs::kAutofillEnabled, 217 prefs::kAutofillEnabled,
218 true, 218 true,
219 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 219 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
220 #if defined(OS_MACOSX) || defined(OS_ANDROID) 220 #if defined(OS_MACOSX) || defined(OS_ANDROID)
221 registry->RegisterBooleanPref( 221 registry->RegisterBooleanPref(
222 prefs::kAutofillAuxiliaryProfilesEnabled, 222 prefs::kAutofillAuxiliaryProfilesEnabled,
223 true, 223 true,
224 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 224 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after
1233 1233
1234 void AutofillManager::UpdateInitialInteractionTimestamp( 1234 void AutofillManager::UpdateInitialInteractionTimestamp(
1235 const TimeTicks& interaction_timestamp) { 1235 const TimeTicks& interaction_timestamp) {
1236 if (initial_interaction_timestamp_.is_null() || 1236 if (initial_interaction_timestamp_.is_null() ||
1237 interaction_timestamp < initial_interaction_timestamp_) { 1237 interaction_timestamp < initial_interaction_timestamp_) {
1238 initial_interaction_timestamp_ = interaction_timestamp; 1238 initial_interaction_timestamp_ = interaction_timestamp;
1239 } 1239 }
1240 } 1240 }
1241 1241
1242 } // namespace autofill 1242 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698