| 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/prefs/browser_prefs.h" | 5 #include "chrome/browser/prefs/browser_prefs.h" |
| 6 | 6 |
| 7 #include "chrome/browser/about_flags.h" | 7 #include "chrome/browser/about_flags.h" |
| 8 #include "chrome/browser/accessibility/invert_bubble_prefs.h" | 8 #include "chrome/browser/accessibility/invert_bubble_prefs.h" |
| 9 #include "chrome/browser/autofill/autofill_manager.h" | 9 #include "chrome/browser/autofill/autofill_manager.h" |
| 10 #include "chrome/browser/background/background_mode_manager.h" | 10 #include "chrome/browser/background/background_mode_manager.h" |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 chromeos::ProxyConfigServiceImpl::RegisterPrefs(local_state); | 166 chromeos::ProxyConfigServiceImpl::RegisterPrefs(local_state); |
| 167 chromeos::UserManager::RegisterPrefs(local_state); | 167 chromeos::UserManager::RegisterPrefs(local_state); |
| 168 chromeos::ServicesCustomizationDocument::RegisterPrefs(local_state); | 168 chromeos::ServicesCustomizationDocument::RegisterPrefs(local_state); |
| 169 chromeos::signed_settings_cache::RegisterPrefs(local_state); | 169 chromeos::signed_settings_cache::RegisterPrefs(local_state); |
| 170 chromeos::WizardController::RegisterPrefs(local_state); | 170 chromeos::WizardController::RegisterPrefs(local_state); |
| 171 policy::AutoEnrollmentClient::RegisterPrefs(local_state); | 171 policy::AutoEnrollmentClient::RegisterPrefs(local_state); |
| 172 policy::DeviceStatusCollector::RegisterPrefs(local_state); | 172 policy::DeviceStatusCollector::RegisterPrefs(local_state); |
| 173 #endif | 173 #endif |
| 174 | 174 |
| 175 #if defined(OS_MACOSX) | 175 #if defined(OS_MACOSX) |
| 176 browser::RegisterObsoleteOSInfobarPrefs(local_state); | 176 chrome::RegisterObsoleteOSInfobarPrefs(local_state); |
| 177 confirm_quit::RegisterLocalState(local_state); | 177 confirm_quit::RegisterLocalState(local_state); |
| 178 #endif | 178 #endif |
| 179 } | 179 } |
| 180 | 180 |
| 181 void RegisterUserPrefs(PrefService* user_prefs) { | 181 void RegisterUserPrefs(PrefService* user_prefs) { |
| 182 // User prefs | 182 // User prefs |
| 183 AlternateErrorPageTabObserver::RegisterUserPrefs(user_prefs); | 183 AlternateErrorPageTabObserver::RegisterUserPrefs(user_prefs); |
| 184 AutofillManager::RegisterUserPrefs(user_prefs); | 184 AutofillManager::RegisterUserPrefs(user_prefs); |
| 185 bookmark_utils::RegisterUserPrefs(user_prefs); | 185 bookmark_utils::RegisterUserPrefs(user_prefs); |
| 186 chrome::ChromeContentBrowserClient::RegisterUserPrefs(user_prefs); | 186 chrome::ChromeContentBrowserClient::RegisterUserPrefs(user_prefs); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 ash::RegisterChromeLauncherUserPrefs(user_prefs); | 223 ash::RegisterChromeLauncherUserPrefs(user_prefs); |
| 224 #endif | 224 #endif |
| 225 | 225 |
| 226 #if !defined(OS_ANDROID) | 226 #if !defined(OS_ANDROID) |
| 227 AppsPromo::RegisterUserPrefs(user_prefs); | 227 AppsPromo::RegisterUserPrefs(user_prefs); |
| 228 extensions::CommandService::RegisterUserPrefs(user_prefs); | 228 extensions::CommandService::RegisterUserPrefs(user_prefs); |
| 229 extensions::ComponentLoader::RegisterUserPrefs(user_prefs); | 229 extensions::ComponentLoader::RegisterUserPrefs(user_prefs); |
| 230 ExtensionPrefs::RegisterUserPrefs(user_prefs); | 230 ExtensionPrefs::RegisterUserPrefs(user_prefs); |
| 231 ExtensionWebUI::RegisterUserPrefs(user_prefs); | 231 ExtensionWebUI::RegisterUserPrefs(user_prefs); |
| 232 chrome::RegisterBrowserUserPrefs(user_prefs); | 232 chrome::RegisterBrowserUserPrefs(user_prefs); |
| 233 browser::RegisterAutolaunchPrefs(user_prefs); | 233 chrome::RegisterAutolaunchPrefs(user_prefs); |
| 234 DevToolsWindow::RegisterUserPrefs(user_prefs); | 234 DevToolsWindow::RegisterUserPrefs(user_prefs); |
| 235 PepperFlashSettingsManager::RegisterUserPrefs(user_prefs); | 235 PepperFlashSettingsManager::RegisterUserPrefs(user_prefs); |
| 236 PinnedTabCodec::RegisterUserPrefs(user_prefs); | 236 PinnedTabCodec::RegisterUserPrefs(user_prefs); |
| 237 PluginsUI::RegisterUserPrefs(user_prefs); | 237 PluginsUI::RegisterUserPrefs(user_prefs); |
| 238 PromoResourceService::RegisterUserPrefs(user_prefs); | 238 PromoResourceService::RegisterUserPrefs(user_prefs); |
| 239 SyncPromoUI::RegisterUserPrefs(user_prefs); | 239 SyncPromoUI::RegisterUserPrefs(user_prefs); |
| 240 #endif | 240 #endif |
| 241 | 241 |
| 242 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 242 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
| 243 default_apps::RegisterUserPrefs(user_prefs); | 243 default_apps::RegisterUserPrefs(user_prefs); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 } | 319 } |
| 320 local_state->ClearPref(prefs::kLastPromptedGoogleURL); | 320 local_state->ClearPref(prefs::kLastPromptedGoogleURL); |
| 321 | 321 |
| 322 current_version |= GOOGLE_URL_TRACKER_PREFS; | 322 current_version |= GOOGLE_URL_TRACKER_PREFS; |
| 323 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 323 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
| 324 current_version); | 324 current_version); |
| 325 } | 325 } |
| 326 } | 326 } |
| 327 | 327 |
| 328 } // namespace browser | 328 } // namespace browser |
| OLD | NEW |