| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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( | 128 registry->RegisterDictionaryPref( |
| 129 prefs::kPreferencesWindowPlacement, | 129 prefs::kPreferencesWindowPlacement, |
| 130 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 130 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 131 registry->RegisterBooleanPref( | 131 registry->RegisterBooleanPref( |
| 132 prefs::kImportAutofillFormData, |
| 133 true, |
| 134 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 135 registry->RegisterBooleanPref( |
| 132 prefs::kImportBookmarks, | 136 prefs::kImportBookmarks, |
| 133 true, | 137 true, |
| 134 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 138 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 135 registry->RegisterBooleanPref( | 139 registry->RegisterBooleanPref( |
| 136 prefs::kImportHistory, | 140 prefs::kImportHistory, |
| 137 true, | 141 true, |
| 138 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 142 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 139 registry->RegisterBooleanPref( | 143 registry->RegisterBooleanPref( |
| 140 prefs::kImportHomepage, | 144 prefs::kImportHomepage, |
| 141 true, | 145 true, |
| 142 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 146 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 143 registry->RegisterBooleanPref( | 147 registry->RegisterBooleanPref( |
| 148 prefs::kImportSavedPasswords, |
| 149 true, |
| 150 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 151 registry->RegisterBooleanPref( |
| 144 prefs::kImportSearchEngine, | 152 prefs::kImportSearchEngine, |
| 145 true, | 153 true, |
| 146 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 154 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
| 147 registry->RegisterBooleanPref( | 155 registry->RegisterBooleanPref( |
| 148 prefs::kImportSavedPasswords, | |
| 149 true, | |
| 150 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | |
| 151 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 Loading... |
| 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 |
| OLD | NEW |