| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/autofill/autofill_manager.h" | 8 #include "chrome/browser/autofill/autofill_manager.h" |
| 9 #include "chrome/browser/background/background_mode_manager.h" | 9 #include "chrome/browser/background/background_mode_manager.h" |
| 10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 #include "chrome/browser/bookmarks/bookmark_model.h" |
| 11 #include "chrome/browser/bookmarks/bookmark_utils.h" | 11 #include "chrome/browser/bookmarks/bookmark_utils.h" |
| 12 #include "chrome/browser/browser_shutdown.h" | 12 #include "chrome/browser/browser_shutdown.h" |
| 13 #include "chrome/browser/content_settings/host_content_settings_map.h" | 13 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 14 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 14 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 15 #include "chrome/browser/debugger/devtools_window.h" | 15 #include "chrome/browser/debugger/devtools_window.h" |
| 16 #include "chrome/browser/download/download_prefs.h" | 16 #include "chrome/browser/download/download_prefs.h" |
| 17 #include "chrome/browser/extensions/apps_promo.h" | 17 #include "chrome/browser/extensions/apps_promo.h" |
| 18 #include "chrome/browser/extensions/extension_prefs.h" | 18 #include "chrome/browser/extensions/extension_prefs.h" |
| 19 #include "chrome/browser/extensions/extension_web_ui.h" | 19 #include "chrome/browser/extensions/extension_web_ui.h" |
| 20 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 20 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
| 21 #include "chrome/browser/geolocation/geolocation_prefs.h" | 21 #include "chrome/browser/geolocation/geolocation_prefs.h" |
| 22 #include "chrome/browser/google/google_url_tracker.h" | 22 #include "chrome/browser/google/google_url_tracker.h" |
| 23 #include "chrome/browser/instant/instant_controller.h" | 23 #include "chrome/browser/instant/instant_controller.h" |
| 24 #include "chrome/browser/intranet_redirect_detector.h" | 24 #include "chrome/browser/intranet_redirect_detector.h" |
| 25 #include "chrome/browser/metrics/metrics_log.h" | 25 #include "chrome/browser/metrics/metrics_log.h" |
| 26 #include "chrome/browser/metrics/metrics_service.h" | 26 #include "chrome/browser/metrics/metrics_service.h" |
| 27 #include "chrome/browser/net/http_server_properties_manager.h" | 27 #include "chrome/browser/net/http_server_properties_manager.h" |
| 28 #include "chrome/browser/net/net_pref_observer.h" | 28 #include "chrome/browser/net/net_pref_observer.h" |
| 29 #include "chrome/browser/net/predictor.h" | 29 #include "chrome/browser/net/predictor.h" |
| 30 #include "chrome/browser/net/pref_proxy_config_service.h" | 30 #include "chrome/browser/net/pref_proxy_config_tracker.h" |
| 31 #include "chrome/browser/net/ssl_config_service_manager.h" | 31 #include "chrome/browser/net/ssl_config_service_manager.h" |
| 32 #include "chrome/browser/notifications/desktop_notification_service.h" | 32 #include "chrome/browser/notifications/desktop_notification_service.h" |
| 33 #include "chrome/browser/notifications/notification_ui_manager.h" | 33 #include "chrome/browser/notifications/notification_ui_manager.h" |
| 34 #include "chrome/browser/page_info_model.h" | 34 #include "chrome/browser/page_info_model.h" |
| 35 #include "chrome/browser/password_manager/password_manager.h" | 35 #include "chrome/browser/password_manager/password_manager.h" |
| 36 #include "chrome/browser/policy/cloud_policy_subsystem.h" | 36 #include "chrome/browser/policy/cloud_policy_subsystem.h" |
| 37 #include "chrome/browser/policy/url_blacklist_manager.h" | 37 #include "chrome/browser/policy/url_blacklist_manager.h" |
| 38 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 38 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 39 #include "chrome/browser/prefs/session_startup_pref.h" | 39 #include "chrome/browser/prefs/session_startup_pref.h" |
| 40 #include "chrome/browser/printing/print_job_manager.h" | 40 #include "chrome/browser/printing/print_job_manager.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 #endif | 111 #endif |
| 112 browser_shutdown::RegisterPrefs(local_state); | 112 browser_shutdown::RegisterPrefs(local_state); |
| 113 #if defined(TOOLKIT_VIEWS) | 113 #if defined(TOOLKIT_VIEWS) |
| 114 BrowserView::RegisterBrowserViewPrefs(local_state); | 114 BrowserView::RegisterBrowserViewPrefs(local_state); |
| 115 #endif | 115 #endif |
| 116 UpgradeDetector::RegisterPrefs(local_state); | 116 UpgradeDetector::RegisterPrefs(local_state); |
| 117 TaskManager::RegisterPrefs(local_state); | 117 TaskManager::RegisterPrefs(local_state); |
| 118 geolocation::RegisterPrefs(local_state); | 118 geolocation::RegisterPrefs(local_state); |
| 119 BackgroundModeManager::RegisterPrefs(local_state); | 119 BackgroundModeManager::RegisterPrefs(local_state); |
| 120 NotificationUIManager::RegisterPrefs(local_state); | 120 NotificationUIManager::RegisterPrefs(local_state); |
| 121 PrefProxyConfigService::RegisterPrefs(local_state); | 121 PrefProxyConfigTracker::RegisterPrefs(local_state); |
| 122 SSLConfigServiceManager::RegisterPrefs(local_state); | 122 SSLConfigServiceManager::RegisterPrefs(local_state); |
| 123 #if defined(ENABLE_CONFIGURATION_POLICY) | 123 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 124 policy::CloudPolicySubsystem::RegisterPrefs(local_state); | 124 policy::CloudPolicySubsystem::RegisterPrefs(local_state); |
| 125 #endif | 125 #endif |
| 126 ProfileInfoCache::RegisterPrefs(local_state); | 126 ProfileInfoCache::RegisterPrefs(local_state); |
| 127 ProfileManager::RegisterPrefs(local_state); | 127 ProfileManager::RegisterPrefs(local_state); |
| 128 #if defined(OS_CHROMEOS) | 128 #if defined(OS_CHROMEOS) |
| 129 chromeos::AudioMixerAlsa::RegisterPrefs(local_state); | 129 chromeos::AudioMixerAlsa::RegisterPrefs(local_state); |
| 130 chromeos::UserManager::RegisterPrefs(local_state); | 130 chromeos::UserManager::RegisterPrefs(local_state); |
| 131 chromeos::UserCrosSettingsProvider::RegisterPrefs(local_state); | 131 chromeos::UserCrosSettingsProvider::RegisterPrefs(local_state); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 155 IncognitoModePrefs::RegisterUserPrefs(user_prefs); | 155 IncognitoModePrefs::RegisterUserPrefs(user_prefs); |
| 156 NewTabUI::RegisterUserPrefs(user_prefs); | 156 NewTabUI::RegisterUserPrefs(user_prefs); |
| 157 PluginsUI::RegisterUserPrefs(user_prefs); | 157 PluginsUI::RegisterUserPrefs(user_prefs); |
| 158 ProfileImpl::RegisterUserPrefs(user_prefs); | 158 ProfileImpl::RegisterUserPrefs(user_prefs); |
| 159 PromoResourceService::RegisterUserPrefs(user_prefs); | 159 PromoResourceService::RegisterUserPrefs(user_prefs); |
| 160 HostContentSettingsMap::RegisterUserPrefs(user_prefs); | 160 HostContentSettingsMap::RegisterUserPrefs(user_prefs); |
| 161 DevToolsWindow::RegisterUserPrefs(user_prefs); | 161 DevToolsWindow::RegisterUserPrefs(user_prefs); |
| 162 PinnedTabCodec::RegisterUserPrefs(user_prefs); | 162 PinnedTabCodec::RegisterUserPrefs(user_prefs); |
| 163 ExtensionPrefs::RegisterUserPrefs(user_prefs); | 163 ExtensionPrefs::RegisterUserPrefs(user_prefs); |
| 164 TranslatePrefs::RegisterUserPrefs(user_prefs); | 164 TranslatePrefs::RegisterUserPrefs(user_prefs); |
| 165 PrefProxyConfigService::RegisterPrefs(user_prefs); | 165 PrefProxyConfigTracker::RegisterPrefs(user_prefs); |
| 166 #if defined(TOOLKIT_VIEWS) | 166 #if defined(TOOLKIT_VIEWS) |
| 167 BrowserActionsContainer::RegisterUserPrefs(user_prefs); | 167 BrowserActionsContainer::RegisterUserPrefs(user_prefs); |
| 168 #elif defined(TOOLKIT_GTK) | 168 #elif defined(TOOLKIT_GTK) |
| 169 BrowserWindowGtk::RegisterUserPrefs(user_prefs); | 169 BrowserWindowGtk::RegisterUserPrefs(user_prefs); |
| 170 #endif | 170 #endif |
| 171 #if defined(OS_CHROMEOS) | 171 #if defined(OS_CHROMEOS) |
| 172 chromeos::Preferences::RegisterUserPrefs(user_prefs); | 172 chromeos::Preferences::RegisterUserPrefs(user_prefs); |
| 173 #endif | 173 #endif |
| 174 SigninManager::RegisterUserPrefs(user_prefs); | 174 SigninManager::RegisterUserPrefs(user_prefs); |
| 175 InstantController::RegisterUserPrefs(user_prefs); | 175 InstantController::RegisterUserPrefs(user_prefs); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 user_prefs->Set(prefs::kBrowserWindowPlacement, *(pref->GetValue())); | 210 user_prefs->Set(prefs::kBrowserWindowPlacement, *(pref->GetValue())); |
| 211 } | 211 } |
| 212 local_state->ClearPref(prefs::kBrowserWindowPlacement); | 212 local_state->ClearPref(prefs::kBrowserWindowPlacement); |
| 213 | 213 |
| 214 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 214 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
| 215 current_version | WINDOWS_PREFS); | 215 current_version | WINDOWS_PREFS); |
| 216 } | 216 } |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace browser | 219 } // namespace browser |
| OLD | NEW |