OLD | NEW |
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 Loading... |
119 true, | 119 true, |
120 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 120 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
121 registry->RegisterBooleanPref( | 121 registry->RegisterBooleanPref( |
122 prefs::kCloudPrintSubmitEnabled, | 122 prefs::kCloudPrintSubmitEnabled, |
123 true, | 123 true, |
124 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 124 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
125 registry->RegisterBooleanPref( | 125 registry->RegisterBooleanPref( |
126 prefs::kDevToolsDisabled, | 126 prefs::kDevToolsDisabled, |
127 false, | 127 false, |
128 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 128 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
129 registry->RegisterIntegerPref( | |
130 prefs::kDevToolsHSplitLocation, | |
131 -1, | |
132 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
133 registry->RegisterIntegerPref( | |
134 prefs::kDevToolsVSplitLocation, | |
135 -1, | |
136 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
137 registry->RegisterDictionaryPref( | 129 registry->RegisterDictionaryPref( |
138 prefs::kBrowserWindowPlacement, | 130 prefs::kBrowserWindowPlacement, |
139 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 131 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
140 registry->RegisterDictionaryPref( | 132 registry->RegisterDictionaryPref( |
141 prefs::kPreferencesWindowPlacement, | 133 prefs::kPreferencesWindowPlacement, |
142 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 134 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
143 registry->RegisterBooleanPref( | 135 registry->RegisterBooleanPref( |
144 prefs::kImportBookmarks, | 136 prefs::kImportBookmarks, |
145 true, | 137 true, |
146 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 138 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( | 205 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( |
214 static_cast<user_prefs::PrefRegistrySyncable*>( | 206 static_cast<user_prefs::PrefRegistrySyncable*>( |
215 prefs->DeprecatedGetPrefRegistry())); | 207 prefs->DeprecatedGetPrefRegistry())); |
216 registry->RegisterDictionaryPref( | 208 registry->RegisterDictionaryPref( |
217 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 209 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
218 } | 210 } |
219 } | 211 } |
220 | 212 |
221 | 213 |
222 } // namespace chrome | 214 } // namespace chrome |
OLD | NEW |