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

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: Review feedback (simplify Read method) Created 6 years, 3 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 prefs::kDevToolsDisabled, 119 prefs::kDevToolsDisabled,
120 false, 120 false,
121 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 121 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
122 registry->RegisterDictionaryPref( 122 registry->RegisterDictionaryPref(
123 prefs::kBrowserWindowPlacement, 123 prefs::kBrowserWindowPlacement,
124 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 124 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
125 registry->RegisterDictionaryPref( 125 registry->RegisterDictionaryPref(
126 prefs::kBrowserWindowPlacementPopup, 126 prefs::kBrowserWindowPlacementPopup,
127 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 127 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
128 registry->RegisterBooleanPref( 128 registry->RegisterBooleanPref(
129 prefs::kImportAutofillFormData,
130 true,
131 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
132 registry->RegisterBooleanPref(
129 prefs::kImportBookmarks, 133 prefs::kImportBookmarks,
130 true, 134 true,
131 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 135 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
132 registry->RegisterBooleanPref( 136 registry->RegisterBooleanPref(
133 prefs::kImportHistory, 137 prefs::kImportHistory,
134 true, 138 true,
135 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 139 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
136 registry->RegisterBooleanPref( 140 registry->RegisterBooleanPref(
137 prefs::kImportHomepage, 141 prefs::kImportHomepage,
138 true, 142 true,
139 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 143 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
140 registry->RegisterBooleanPref( 144 registry->RegisterBooleanPref(
145 prefs::kImportSavedPasswords,
146 true,
147 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
148 registry->RegisterBooleanPref(
141 prefs::kImportSearchEngine, 149 prefs::kImportSearchEngine,
142 true, 150 true,
143 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 151 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
144 registry->RegisterBooleanPref( 152 registry->RegisterBooleanPref(
145 prefs::kImportSavedPasswords,
146 true,
147 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
148 registry->RegisterBooleanPref(
149 prefs::kEnableDoNotTrack, 153 prefs::kEnableDoNotTrack,
150 false, 154 false,
151 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 155 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
152 156
153 // Dictionaries to keep track of default tasks in the file browser. 157 // Dictionaries to keep track of default tasks in the file browser.
154 registry->RegisterDictionaryPref( 158 registry->RegisterDictionaryPref(
155 prefs::kDefaultTasksByMimeType, 159 prefs::kDefaultTasksByMimeType,
156 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 160 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
157 registry->RegisterDictionaryPref( 161 registry->RegisterDictionaryPref(
158 prefs::kDefaultTasksBySuffix, 162 prefs::kDefaultTasksBySuffix,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( 202 scoped_refptr<user_prefs::PrefRegistrySyncable> registry(
199 static_cast<user_prefs::PrefRegistrySyncable*>( 203 static_cast<user_prefs::PrefRegistrySyncable*>(
200 prefs->DeprecatedGetPrefRegistry())); 204 prefs->DeprecatedGetPrefRegistry()));
201 registry->RegisterDictionaryPref( 205 registry->RegisterDictionaryPref(
202 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 206 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
203 } 207 }
204 } 208 }
205 209
206 210
207 } // namespace chrome 211 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/import_data_overlay.js ('k') | chrome/browser/ui/webui/options/import_data_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698