| 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" |
| 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/chrome_content_browser_client.h" | 13 #include "chrome/browser/chrome_content_browser_client.h" |
| 14 #include "chrome/browser/content_settings/host_content_settings_map.h" | 14 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 15 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 15 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 16 #include "chrome/browser/debugger/devtools_window.h" | 16 #include "chrome/browser/debugger/devtools_window.h" |
| 17 #include "chrome/browser/download/download_prefs.h" | 17 #include "chrome/browser/download/download_prefs.h" |
| 18 #include "chrome/browser/extensions/api/commands/command_service.h" | 18 #include "chrome/browser/extensions/api/commands/command_service.h" |
| 19 #include "chrome/browser/extensions/api/tabs/tabs.h" |
| 19 #include "chrome/browser/extensions/apps_promo.h" | 20 #include "chrome/browser/extensions/apps_promo.h" |
| 20 #include "chrome/browser/extensions/component_loader.h" | 21 #include "chrome/browser/extensions/component_loader.h" |
| 21 #include "chrome/browser/extensions/extension_prefs.h" | 22 #include "chrome/browser/extensions/extension_prefs.h" |
| 22 #include "chrome/browser/extensions/extension_web_ui.h" | 23 #include "chrome/browser/extensions/extension_web_ui.h" |
| 23 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 24 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
| 24 #include "chrome/browser/geolocation/geolocation_prefs.h" | 25 #include "chrome/browser/geolocation/geolocation_prefs.h" |
| 25 #include "chrome/browser/google/google_url_tracker.h" | 26 #include "chrome/browser/google/google_url_tracker.h" |
| 26 #include "chrome/browser/google/google_url_tracker_factory.h" | 27 #include "chrome/browser/google/google_url_tracker_factory.h" |
| 27 #include "chrome/browser/instant/instant_controller.h" | 28 #include "chrome/browser/instant/instant_controller.h" |
| 28 #include "chrome/browser/intents/web_intents_util.h" | 29 #include "chrome/browser/intents/web_intents_util.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 62 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
| 62 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" | 63 #include "chrome/browser/ui/search_engines/keyword_editor_controller.h" |
| 63 #include "chrome/browser/ui/startup/autolaunch_prompt.h" | 64 #include "chrome/browser/ui/startup/autolaunch_prompt.h" |
| 64 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" | 65 #include "chrome/browser/ui/tabs/pinned_tab_codec.h" |
| 65 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" | 66 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
| 66 #include "chrome/browser/ui/webui/flags_ui.h" | 67 #include "chrome/browser/ui/webui/flags_ui.h" |
| 67 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 68 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| 68 #include "chrome/browser/ui/webui/plugins_ui.h" | 69 #include "chrome/browser/ui/webui/plugins_ui.h" |
| 69 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" | 70 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" |
| 70 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" | 71 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" |
| 72 #include "chrome/browser/ui/window_snapshot/window_snapshot.h" |
| 71 #include "chrome/browser/upgrade_detector.h" | 73 #include "chrome/browser/upgrade_detector.h" |
| 72 #include "chrome/browser/web_resource/promo_resource_service.h" | 74 #include "chrome/browser/web_resource/promo_resource_service.h" |
| 73 #include "chrome/common/pref_names.h" | 75 #include "chrome/common/pref_names.h" |
| 74 #include "content/public/browser/render_process_host.h" | 76 #include "content/public/browser/render_process_host.h" |
| 75 | 77 |
| 76 #if defined(OS_MACOSX) | 78 #if defined(OS_MACOSX) |
| 77 #include "chrome/browser/ui/cocoa/confirm_quit.h" | 79 #include "chrome/browser/ui/cocoa/confirm_quit.h" |
| 78 #include "chrome/browser/ui/startup/obsolete_os_prompt.h" | 80 #include "chrome/browser/ui/startup/obsolete_os_prompt.h" |
| 79 #endif | 81 #endif |
| 80 | 82 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 KeywordEditorController::RegisterPrefs(local_state); | 136 KeywordEditorController::RegisterPrefs(local_state); |
| 135 MetricsLog::RegisterPrefs(local_state); | 137 MetricsLog::RegisterPrefs(local_state); |
| 136 MetricsService::RegisterPrefs(local_state); | 138 MetricsService::RegisterPrefs(local_state); |
| 137 PrefProxyConfigTrackerImpl::RegisterPrefs(local_state); | 139 PrefProxyConfigTrackerImpl::RegisterPrefs(local_state); |
| 138 ProfileInfoCache::RegisterPrefs(local_state); | 140 ProfileInfoCache::RegisterPrefs(local_state); |
| 139 ProfileManager::RegisterPrefs(local_state); | 141 ProfileManager::RegisterPrefs(local_state); |
| 140 SigninManagerFactory::RegisterPrefs(local_state); | 142 SigninManagerFactory::RegisterPrefs(local_state); |
| 141 SSLConfigServiceManager::RegisterPrefs(local_state); | 143 SSLConfigServiceManager::RegisterPrefs(local_state); |
| 142 chrome_variations::VariationsService::RegisterPrefs(local_state); | 144 chrome_variations::VariationsService::RegisterPrefs(local_state); |
| 143 WebCacheManager::RegisterPrefs(local_state); | 145 WebCacheManager::RegisterPrefs(local_state); |
| 146 chrome::RegisterScreenshotPrefs(local_state); |
| 144 | 147 |
| 145 #if defined(ENABLE_CONFIGURATION_POLICY) | 148 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 146 policy::CloudPolicySubsystem::RegisterPrefs(local_state); | 149 policy::CloudPolicySubsystem::RegisterPrefs(local_state); |
| 147 #endif | 150 #endif |
| 148 | 151 |
| 149 #if defined(ENABLE_NOTIFICATIONS) | 152 #if defined(ENABLE_NOTIFICATIONS) |
| 150 NotificationPrefsManager::RegisterPrefs(local_state); | 153 NotificationPrefsManager::RegisterPrefs(local_state); |
| 151 #endif | 154 #endif |
| 152 | 155 |
| 153 #if defined(ENABLE_TASK_MANAGER) | 156 #if defined(ENABLE_TASK_MANAGER) |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 #if defined(OS_ANDROID) | 231 #if defined(OS_ANDROID) |
| 229 geolocation::RegisterUserPrefs(user_prefs); | 232 geolocation::RegisterUserPrefs(user_prefs); |
| 230 #endif | 233 #endif |
| 231 | 234 |
| 232 #if defined(USE_ASH) | 235 #if defined(USE_ASH) |
| 233 ash::RegisterChromeLauncherUserPrefs(user_prefs); | 236 ash::RegisterChromeLauncherUserPrefs(user_prefs); |
| 234 #endif | 237 #endif |
| 235 | 238 |
| 236 #if !defined(OS_ANDROID) | 239 #if !defined(OS_ANDROID) |
| 237 AppsPromo::RegisterUserPrefs(user_prefs); | 240 AppsPromo::RegisterUserPrefs(user_prefs); |
| 241 CaptureVisibleTabFunction::RegisterUserPrefs(user_prefs); |
| 238 ChromeToMobileService::RegisterUserPrefs(user_prefs); | 242 ChromeToMobileService::RegisterUserPrefs(user_prefs); |
| 239 extensions::CommandService::RegisterUserPrefs(user_prefs); | 243 extensions::CommandService::RegisterUserPrefs(user_prefs); |
| 240 extensions::ComponentLoader::RegisterUserPrefs(user_prefs); | 244 extensions::ComponentLoader::RegisterUserPrefs(user_prefs); |
| 241 extensions::ExtensionPrefs::RegisterUserPrefs(user_prefs); | 245 extensions::ExtensionPrefs::RegisterUserPrefs(user_prefs); |
| 242 ExtensionSettingsHandler::RegisterUserPrefs(user_prefs); | 246 ExtensionSettingsHandler::RegisterUserPrefs(user_prefs); |
| 243 ExtensionWebUI::RegisterUserPrefs(user_prefs); | 247 ExtensionWebUI::RegisterUserPrefs(user_prefs); |
| 244 RegisterBrowserUserPrefs(user_prefs); | 248 RegisterBrowserUserPrefs(user_prefs); |
| 245 RegisterAutolaunchPrefs(user_prefs); | 249 RegisterAutolaunchPrefs(user_prefs); |
| 246 DevToolsWindow::RegisterUserPrefs(user_prefs); | 250 DevToolsWindow::RegisterUserPrefs(user_prefs); |
| 247 PepperFlashSettingsManager::RegisterUserPrefs(user_prefs); | 251 PepperFlashSettingsManager::RegisterUserPrefs(user_prefs); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 } | 330 } |
| 327 local_state->ClearPref(prefs::kLastPromptedGoogleURL); | 331 local_state->ClearPref(prefs::kLastPromptedGoogleURL); |
| 328 | 332 |
| 329 current_version |= GOOGLE_URL_TRACKER_PREFS; | 333 current_version |= GOOGLE_URL_TRACKER_PREFS; |
| 330 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, | 334 local_state->SetInteger(prefs::kMultipleProfilePrefMigration, |
| 331 current_version); | 335 current_version); |
| 332 } | 336 } |
| 333 } | 337 } |
| 334 | 338 |
| 335 } // namespace chrome | 339 } // namespace chrome |
| OLD | NEW |