OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "base/prefs/pref_registry_simple.h" | 10 #include "base/prefs/pref_registry_simple.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 #include "chrome/browser/apps/drive/drive_app_mapping.h" | 108 #include "chrome/browser/apps/drive/drive_app_mapping.h" |
109 #include "chrome/browser/apps/shortcut_manager.h" | 109 #include "chrome/browser/apps/shortcut_manager.h" |
110 #include "chrome/browser/extensions/activity_log/activity_log.h" | 110 #include "chrome/browser/extensions/activity_log/activity_log.h" |
111 #include "chrome/browser/extensions/api/commands/command_service.h" | 111 #include "chrome/browser/extensions/api/commands/command_service.h" |
112 #include "chrome/browser/extensions/api/tabs/tabs_api.h" | 112 #include "chrome/browser/extensions/api/tabs/tabs_api.h" |
113 #include "chrome/browser/extensions/extension_web_ui.h" | 113 #include "chrome/browser/extensions/extension_web_ui.h" |
114 #include "chrome/browser/extensions/launch_util.h" | 114 #include "chrome/browser/extensions/launch_util.h" |
115 #include "chrome/browser/signin/easy_unlock_service.h" | 115 #include "chrome/browser/signin/easy_unlock_service.h" |
116 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" | 116 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
117 #include "extensions/browser/extension_prefs.h" | 117 #include "extensions/browser/extension_prefs.h" |
118 #if !defined(OS_ANDROID) && !defined(OS_IOS) | |
119 #include "chrome/browser/extensions/api/copresence/copresence_api.h" | 118 #include "chrome/browser/extensions/api/copresence/copresence_api.h" |
120 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" | 119 #include "chrome/browser/ui/toolbar/toolbar_actions_bar.h" |
121 #endif | |
122 #endif // defined(ENABLE_EXTENSIONS) | 120 #endif // defined(ENABLE_EXTENSIONS) |
123 | 121 |
124 #if defined(ENABLE_PLUGIN_INSTALLATION) | 122 #if defined(ENABLE_PLUGIN_INSTALLATION) |
125 #include "chrome/browser/plugins/plugins_resource_service.h" | 123 #include "chrome/browser/plugins/plugins_resource_service.h" |
126 #endif | 124 #endif |
127 | 125 |
128 #if defined(ENABLE_SUPERVISED_USERS) | 126 #if defined(ENABLE_SUPERVISED_USERS) |
129 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h" | 127 #include "chrome/browser/supervised_user/child_accounts/child_account_service.h" |
130 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" | 128 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_
service.h" |
131 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" | 129 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 #endif | 279 #endif |
282 | 280 |
283 #if defined(ENABLE_PLUGIN_INSTALLATION) | 281 #if defined(ENABLE_PLUGIN_INSTALLATION) |
284 PluginsResourceService::RegisterPrefs(registry); | 282 PluginsResourceService::RegisterPrefs(registry); |
285 #endif | 283 #endif |
286 | 284 |
287 #if defined(ENABLE_TASK_MANAGER) | 285 #if defined(ENABLE_TASK_MANAGER) |
288 TaskManager::RegisterPrefs(registry); | 286 TaskManager::RegisterPrefs(registry); |
289 #endif // defined(ENABLE_TASK_MANAGER) | 287 #endif // defined(ENABLE_TASK_MANAGER) |
290 | 288 |
| 289 #if defined(ENABLE_BACKGROUND) |
| 290 BackgroundModeManager::RegisterPrefs(registry); |
| 291 #endif |
| 292 |
| 293 // TODO(bshe): Use !defined(ANDROID_JAVA_UI) once |
| 294 // codereview.chromium.org/1459793002 landed. |
| 295 #if !defined(OS_ANDROID) || defined(USE_AURA) |
| 296 RegisterBrowserPrefs(registry); |
| 297 #endif |
| 298 |
291 #if !defined(OS_ANDROID) | 299 #if !defined(OS_ANDROID) |
292 BackgroundModeManager::RegisterPrefs(registry); | |
293 ChromeTracingDelegate::RegisterPrefs(registry); | 300 ChromeTracingDelegate::RegisterPrefs(registry); |
294 RegisterBrowserPrefs(registry); | |
295 StartupBrowserCreator::RegisterLocalStatePrefs(registry); | 301 StartupBrowserCreator::RegisterLocalStatePrefs(registry); |
296 // The native GCM is used on Android instead. | 302 // The native GCM is used on Android instead. |
297 gcm::GCMChannelStatusSyncer::RegisterPrefs(registry); | 303 gcm::GCMChannelStatusSyncer::RegisterPrefs(registry); |
298 UpgradeDetector::RegisterPrefs(registry); | 304 UpgradeDetector::RegisterPrefs(registry); |
299 #if !defined(OS_CHROMEOS) | 305 #if !defined(OS_CHROMEOS) |
300 RegisterDefaultBrowserPromptPrefs(registry); | 306 RegisterDefaultBrowserPromptPrefs(registry); |
301 #endif // !defined(OS_CHROMEOS) | 307 #endif // !defined(OS_CHROMEOS) |
302 #endif // !defined(OS_ANDROID) | 308 #endif // !defined(OS_ANDROID) |
303 | 309 |
304 #if defined(OS_CHROMEOS) | 310 #if defined(OS_CHROMEOS) |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 #if defined(ENABLE_CONFIGURATION_POLICY) | 411 #if defined(ENABLE_CONFIGURATION_POLICY) |
406 policy::URLBlacklistManager::RegisterProfilePrefs(registry); | 412 policy::URLBlacklistManager::RegisterProfilePrefs(registry); |
407 #endif | 413 #endif |
408 | 414 |
409 #if defined(ENABLE_EXTENSIONS) | 415 #if defined(ENABLE_EXTENSIONS) |
410 EasyUnlockService::RegisterProfilePrefs(registry); | 416 EasyUnlockService::RegisterProfilePrefs(registry); |
411 extensions::ActivityLog::RegisterProfilePrefs(registry); | 417 extensions::ActivityLog::RegisterProfilePrefs(registry); |
412 extensions::launch_util::RegisterProfilePrefs(registry); | 418 extensions::launch_util::RegisterProfilePrefs(registry); |
413 ExtensionWebUI::RegisterProfilePrefs(registry); | 419 ExtensionWebUI::RegisterProfilePrefs(registry); |
414 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); | 420 extensions::ExtensionPrefs::RegisterProfilePrefs(registry); |
415 #if !defined(OS_ANDROID) && !defined(OS_IOS) | |
416 ToolbarActionsBar::RegisterProfilePrefs(registry); | 421 ToolbarActionsBar::RegisterProfilePrefs(registry); |
417 extensions::CopresenceService::RegisterProfilePrefs(registry); | 422 extensions::CopresenceService::RegisterProfilePrefs(registry); |
418 #endif | |
419 RegisterAnimationPolicyPrefs(registry); | 423 RegisterAnimationPolicyPrefs(registry); |
420 #endif // defined(ENABLE_EXTENSIONS) | 424 #endif // defined(ENABLE_EXTENSIONS) |
421 | 425 |
422 #if defined(ENABLE_NOTIFICATIONS) | 426 #if defined(ENABLE_NOTIFICATIONS) |
423 NotifierStateTracker::RegisterProfilePrefs(registry); | 427 NotifierStateTracker::RegisterProfilePrefs(registry); |
424 #endif | 428 #endif |
425 | 429 |
426 #if defined(ENABLE_NOTIFICATIONS) && defined(ENABLE_EXTENSIONS) && \ | 430 #if defined(ENABLE_NOTIFICATIONS) && defined(ENABLE_EXTENSIONS) && \ |
427 !defined(OS_ANDROID) | 431 !defined(OS_ANDROID) |
428 // The extension welcome notification requires a build that enables extensions | 432 // The extension welcome notification requires a build that enables extensions |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 extensions::ExtensionSettingsHandler::RegisterProfilePrefs(registry); | 471 extensions::ExtensionSettingsHandler::RegisterProfilePrefs(registry); |
468 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); | 472 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); |
469 first_run::RegisterProfilePrefs(registry); | 473 first_run::RegisterProfilePrefs(registry); |
470 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); | 474 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); |
471 NewTabUI::RegisterProfilePrefs(registry); | 475 NewTabUI::RegisterProfilePrefs(registry); |
472 PepperFlashSettingsManager::RegisterProfilePrefs(registry); | 476 PepperFlashSettingsManager::RegisterProfilePrefs(registry); |
473 PinnedTabCodec::RegisterProfilePrefs(registry); | 477 PinnedTabCodec::RegisterProfilePrefs(registry); |
474 signin::RegisterProfilePrefs(registry); | 478 signin::RegisterProfilePrefs(registry); |
475 #endif | 479 #endif |
476 | 480 |
477 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 481 // TODO(bshe): Revisit this once it is more clear on what should we do with |
| 482 // default apps on Aura Android. See crbug.com/564738 |
| 483 #if (!defined(OS_ANDROID) || defined(USE_AURA)) && !defined(OS_CHROMEOS) |
478 default_apps::RegisterProfilePrefs(registry); | 484 default_apps::RegisterProfilePrefs(registry); |
479 #endif | 485 #endif |
480 | 486 |
481 #if defined(OS_CHROMEOS) | 487 #if defined(OS_CHROMEOS) |
482 chromeos::first_run::RegisterProfilePrefs(registry); | 488 chromeos::first_run::RegisterProfilePrefs(registry); |
483 chromeos::file_system_provider::RegisterProfilePrefs(registry); | 489 chromeos::file_system_provider::RegisterProfilePrefs(registry); |
484 chromeos::KeyPermissions::RegisterProfilePrefs(registry); | 490 chromeos::KeyPermissions::RegisterProfilePrefs(registry); |
485 chromeos::MultiProfileUserController::RegisterProfilePrefs(registry); | 491 chromeos::MultiProfileUserController::RegisterProfilePrefs(registry); |
486 chromeos::Preferences::RegisterProfilePrefs(registry); | 492 chromeos::Preferences::RegisterProfilePrefs(registry); |
487 chromeos::proxy_config::RegisterProfilePrefs(registry); | 493 chromeos::proxy_config::RegisterProfilePrefs(registry); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 MigrateGoogleNowPrefs(profile); | 566 MigrateGoogleNowPrefs(profile); |
561 #endif | 567 #endif |
562 | 568 |
563 #if defined(OS_WIN) | 569 #if defined(OS_WIN) |
564 // Added 11/2015. | 570 // Added 11/2015. |
565 profile_prefs->ClearPref(kShownAutoLaunchInfobarDeprecated); | 571 profile_prefs->ClearPref(kShownAutoLaunchInfobarDeprecated); |
566 #endif | 572 #endif |
567 } | 573 } |
568 | 574 |
569 } // namespace chrome | 575 } // namespace chrome |
OLD | NEW |