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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 registry->RegisterBooleanPref( | 118 registry->RegisterBooleanPref( |
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->RegisterDictionaryPref( | |
129 prefs::kPreferencesWindowPlacement, | |
130 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
131 registry->RegisterBooleanPref( | 128 registry->RegisterBooleanPref( |
132 prefs::kImportBookmarks, | 129 prefs::kImportBookmarks, |
133 true, | 130 true, |
134 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 131 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
135 registry->RegisterBooleanPref( | 132 registry->RegisterBooleanPref( |
136 prefs::kImportHistory, | 133 prefs::kImportHistory, |
137 true, | 134 true, |
138 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 135 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
139 registry->RegisterBooleanPref( | 136 registry->RegisterBooleanPref( |
140 prefs::kImportHomepage, | 137 prefs::kImportHomepage, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( | 198 scoped_refptr<user_prefs::PrefRegistrySyncable> registry( |
202 static_cast<user_prefs::PrefRegistrySyncable*>( | 199 static_cast<user_prefs::PrefRegistrySyncable*>( |
203 prefs->DeprecatedGetPrefRegistry())); | 200 prefs->DeprecatedGetPrefRegistry())); |
204 registry->RegisterDictionaryPref( | 201 registry->RegisterDictionaryPref( |
205 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 202 window_pref.c_str(), user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
206 } | 203 } |
207 } | 204 } |
208 | 205 |
209 | 206 |
210 } // namespace chrome | 207 } // namespace chrome |
OLD | NEW |