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

Side by Side Diff: chrome/browser/ui/browser_ui_prefs.cc

Issue 480953002: Implement "Autofill form data" import for Firefox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added test case Created 6 years, 4 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 (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/ui/browser_ui_prefs.h" 5 #include "chrome/browser/ui/browser_ui_prefs.h"
6 6
7 #include "base/prefs/pref_registry_simple.h" 7 #include "base/prefs/pref_registry_simple.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/first_run/first_run.h" 9 #include "chrome/browser/first_run/first_run.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 142 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
143 registry->RegisterBooleanPref( 143 registry->RegisterBooleanPref(
144 prefs::kImportSearchEngine, 144 prefs::kImportSearchEngine,
145 true, 145 true,
146 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 146 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
147 registry->RegisterBooleanPref( 147 registry->RegisterBooleanPref(
148 prefs::kImportSavedPasswords, 148 prefs::kImportSavedPasswords,
149 true, 149 true,
150 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 150 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
151 registry->RegisterBooleanPref( 151 registry->RegisterBooleanPref(
152 prefs::kImportAutofillFormData,
153 true,
154 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
155 registry->RegisterBooleanPref(
152 prefs::kEnableDoNotTrack, 156 prefs::kEnableDoNotTrack,
153 false, 157 false,
154 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 158 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
155 159
156 // Dictionaries to keep track of default tasks in the file browser. 160 // Dictionaries to keep track of default tasks in the file browser.
157 registry->RegisterDictionaryPref( 161 registry->RegisterDictionaryPref(
158 prefs::kDefaultTasksByMimeType, 162 prefs::kDefaultTasksByMimeType,
159 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 163 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
160 registry->RegisterDictionaryPref( 164 registry->RegisterDictionaryPref(
161 prefs::kDefaultTasksBySuffix, 165 prefs::kDefaultTasksBySuffix,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( 205 scoped_refptr<user_prefs::PrefRegistrySyncable> registry(
202 static_cast<user_prefs::PrefRegistrySyncable*>( 206 static_cast<user_prefs::PrefRegistrySyncable*>(
203 prefs->DeprecatedGetPrefRegistry())); 207 prefs->DeprecatedGetPrefRegistry()));
204 registry->RegisterDictionaryPref( 208 registry->RegisterDictionaryPref(
205 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 209 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
206 } 210 }
207 } 211 }
208 212
209 213
210 } // namespace chrome 214 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698