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/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/prefs/pref_registry_simple.h" | 10 #include "base/prefs/pref_registry_simple.h" |
(...skipping 25 matching lines...) Expand all Loading... | |
36 #include "chrome/browser/media/media_stream_devices_controller.h" | 36 #include "chrome/browser/media/media_stream_devices_controller.h" |
37 #include "chrome/browser/metrics/chrome_metrics_service_client.h" | 37 #include "chrome/browser/metrics/chrome_metrics_service_client.h" |
38 #include "chrome/browser/metrics/variations/variations_service.h" | 38 #include "chrome/browser/metrics/variations/variations_service.h" |
39 #include "chrome/browser/net/http_server_properties_manager_factory.h" | 39 #include "chrome/browser/net/http_server_properties_manager_factory.h" |
40 #include "chrome/browser/net/net_pref_observer.h" | 40 #include "chrome/browser/net/net_pref_observer.h" |
41 #include "chrome/browser/net/prediction_options.h" | 41 #include "chrome/browser/net/prediction_options.h" |
42 #include "chrome/browser/net/predictor.h" | 42 #include "chrome/browser/net/predictor.h" |
43 #include "chrome/browser/net/pref_proxy_config_tracker_impl.h" | 43 #include "chrome/browser/net/pref_proxy_config_tracker_impl.h" |
44 #include "chrome/browser/net/ssl_config_service_manager.h" | 44 #include "chrome/browser/net/ssl_config_service_manager.h" |
45 #include "chrome/browser/notifications/desktop_notification_service.h" | 45 #include "chrome/browser/notifications/desktop_notification_service.h" |
46 #include "chrome/browser/notifications/extensions/extension_welcome_notification .h" | |
46 #include "chrome/browser/notifications/message_center_notification_manager.h" | 47 #include "chrome/browser/notifications/message_center_notification_manager.h" |
47 #include "chrome/browser/pepper_flash_settings_manager.h" | 48 #include "chrome/browser/pepper_flash_settings_manager.h" |
48 #include "chrome/browser/plugins/plugin_finder.h" | 49 #include "chrome/browser/plugins/plugin_finder.h" |
49 #include "chrome/browser/prefs/chrome_pref_service_factory.h" | 50 #include "chrome/browser/prefs/chrome_pref_service_factory.h" |
50 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 51 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
51 #include "chrome/browser/prefs/pref_service_syncable.h" | 52 #include "chrome/browser/prefs/pref_service_syncable.h" |
52 #include "chrome/browser/prefs/session_startup_pref.h" | 53 #include "chrome/browser/prefs/session_startup_pref.h" |
53 #include "chrome/browser/printing/print_dialog_cloud.h" | 54 #include "chrome/browser/printing/print_dialog_cloud.h" |
54 #include "chrome/browser/profiles/chrome_version_service.h" | 55 #include "chrome/browser/profiles/chrome_version_service.h" |
55 #include "chrome/browser/profiles/profile.h" | 56 #include "chrome/browser/profiles/profile.h" |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
418 #if defined(ENABLE_MANAGED_USERS) | 419 #if defined(ENABLE_MANAGED_USERS) |
419 SupervisedUserService::RegisterProfilePrefs(registry); | 420 SupervisedUserService::RegisterProfilePrefs(registry); |
420 SupervisedUserSharedSettingsService::RegisterProfilePrefs(registry); | 421 SupervisedUserSharedSettingsService::RegisterProfilePrefs(registry); |
421 SupervisedUserSyncService::RegisterProfilePrefs(registry); | 422 SupervisedUserSyncService::RegisterProfilePrefs(registry); |
422 #endif | 423 #endif |
423 | 424 |
424 #if defined(ENABLE_NOTIFICATIONS) | 425 #if defined(ENABLE_NOTIFICATIONS) |
425 DesktopNotificationService::RegisterProfilePrefs(registry); | 426 DesktopNotificationService::RegisterProfilePrefs(registry); |
426 #endif | 427 #endif |
427 | 428 |
429 #if defined(ENABLE_NOTIFICATIONS) && defined(ENABLE_EXTENSIONS) | |
430 ExtensionWelcomeNotification::RegisterProfilePrefs(registry); | |
robliao
2014/09/18 20:13:06
And a quick question here. What happens if there i
Peter Beverloo
2014/09/19 13:01:22
Hm, this would occur for an Android build which en
| |
431 #endif | |
432 | |
428 #if defined(ENABLE_SERVICE_DISCOVERY) | 433 #if defined(ENABLE_SERVICE_DISCOVERY) |
429 LocalDiscoveryUI::RegisterProfilePrefs(registry); | 434 LocalDiscoveryUI::RegisterProfilePrefs(registry); |
430 #endif | 435 #endif |
431 | 436 |
432 #if defined(OS_ANDROID) | 437 #if defined(OS_ANDROID) |
433 chrome_variations::VariationsService::RegisterProfilePrefs(registry); | 438 chrome_variations::VariationsService::RegisterProfilePrefs(registry); |
434 NewTabPagePrefs::RegisterProfilePrefs(registry); | 439 NewTabPagePrefs::RegisterProfilePrefs(registry); |
435 PartnerBookmarksShim::RegisterProfilePrefs(registry); | 440 PartnerBookmarksShim::RegisterProfilePrefs(registry); |
436 #else | 441 #else |
437 AppShortcutManager::RegisterProfilePrefs(registry); | 442 AppShortcutManager::RegisterProfilePrefs(registry); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
610 #if defined(OS_CHROMEOS) | 615 #if defined(OS_CHROMEOS) |
611 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); | 616 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); |
612 #endif | 617 #endif |
613 | 618 |
614 #if defined(TOOLKIT_VIEWS) | 619 #if defined(TOOLKIT_VIEWS) |
615 MigrateBrowserTabStripPrefs(local_state); | 620 MigrateBrowserTabStripPrefs(local_state); |
616 #endif | 621 #endif |
617 } | 622 } |
618 | 623 |
619 } // namespace chrome | 624 } // namespace chrome |
OLD | NEW |