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

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

Issue 944433002: Revamp the MigrateBrowserPrefs and MigrateUserPrefs code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gab comments Created 5 years, 10 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 "base/prefs/scoped_user_pref_update.h" 9 #include "base/prefs/scoped_user_pref_update.h"
10 #include "chrome/browser/first_run/first_run.h" 10 #include "chrome/browser/first_run/first_run.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 114 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
115 registry->RegisterBooleanPref( 115 registry->RegisterBooleanPref(
116 prefs::kCloudPrintSubmitEnabled, 116 prefs::kCloudPrintSubmitEnabled,
117 true, 117 true,
118 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 118 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
119 registry->RegisterBooleanPref( 119 registry->RegisterBooleanPref(
120 prefs::kDevToolsDisabled, 120 prefs::kDevToolsDisabled,
121 false, 121 false,
122 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 122 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
123 registry->RegisterDictionaryPref( 123 registry->RegisterDictionaryPref(
124 prefs::kBrowserWindowPlacement,
125 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
126 registry->RegisterDictionaryPref(
127 prefs::kBrowserWindowPlacementPopup, 124 prefs::kBrowserWindowPlacementPopup,
128 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 125 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
129 registry->RegisterDictionaryPref( 126 registry->RegisterDictionaryPref(
130 prefs::kAppWindowPlacement, 127 prefs::kAppWindowPlacement,
131 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 128 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
132 registry->RegisterBooleanPref( 129 registry->RegisterBooleanPref(
133 prefs::kImportAutofillFormData, 130 prefs::kImportAutofillFormData,
134 true, 131 true,
135 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 132 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
136 registry->RegisterBooleanPref( 133 registry->RegisterBooleanPref(
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 189 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
193 #if !defined(OS_MACOSX) 190 #if !defined(OS_MACOSX)
194 registry->RegisterBooleanPref( 191 registry->RegisterBooleanPref(
195 prefs::kFullscreenAllowed, 192 prefs::kFullscreenAllowed,
196 true, 193 true,
197 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 194 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
198 #endif 195 #endif
199 } 196 }
200 197
201 } // namespace chrome 198 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698