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

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: Rebased. 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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 1228
1229 void AutofillManager::UpdateInitialInteractionTimestamp( 1229 void AutofillManager::UpdateInitialInteractionTimestamp(
1230 const TimeTicks& interaction_timestamp) { 1230 const TimeTicks& interaction_timestamp) {
1231 if (initial_interaction_timestamp_.is_null() || 1231 if (initial_interaction_timestamp_.is_null() ||
1232 interaction_timestamp < initial_interaction_timestamp_) { 1232 interaction_timestamp < initial_interaction_timestamp_) {
1233 initial_interaction_timestamp_ = interaction_timestamp; 1233 initial_interaction_timestamp_ = interaction_timestamp;
1234 } 1234 }
1235 } 1235 }
1236 1236
1237 } // namespace autofill 1237 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698