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

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

Issue 858053003: Minor changes to still-unfinal chrome://settings/autofill wallet UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dont return void and add include Created 5 years, 11 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
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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 AutofillManager::~AutofillManager() {} 167 AutofillManager::~AutofillManager() {}
168 168
169 // static 169 // static
170 void AutofillManager::RegisterProfilePrefs( 170 void AutofillManager::RegisterProfilePrefs(
171 user_prefs::PrefRegistrySyncable* registry) { 171 user_prefs::PrefRegistrySyncable* registry) {
172 registry->RegisterBooleanPref( 172 registry->RegisterBooleanPref(
173 prefs::kAutofillEnabled, 173 prefs::kAutofillEnabled,
174 true, 174 true,
175 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 175 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
176 registry->RegisterBooleanPref(
177 prefs::kAutofillWalletImportEnabled,
178 true,
179 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
176 #if defined(OS_MACOSX) 180 #if defined(OS_MACOSX)
177 registry->RegisterBooleanPref( 181 registry->RegisterBooleanPref(
178 prefs::kAutofillAuxiliaryProfilesEnabled, 182 prefs::kAutofillAuxiliaryProfilesEnabled,
179 true, 183 true,
180 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 184 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
181 #else // defined(OS_MACOSX) 185 #else // defined(OS_MACOSX)
182 registry->RegisterBooleanPref( 186 registry->RegisterBooleanPref(
183 prefs::kAutofillAuxiliaryProfilesEnabled, 187 prefs::kAutofillAuxiliaryProfilesEnabled,
184 false, 188 false,
185 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 189 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1321 return false; 1325 return false;
1322 1326
1323 // Disregard forms that we wouldn't ever autofill in the first place. 1327 // Disregard forms that we wouldn't ever autofill in the first place.
1324 if (!form.ShouldBeParsed()) 1328 if (!form.ShouldBeParsed())
1325 return false; 1329 return false;
1326 1330
1327 return true; 1331 return true;
1328 } 1332 }
1329 1333
1330 } // namespace autofill 1334 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/autofill_options.js ('k') | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698