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 "apps/prefs.h" | 7 #include "apps/prefs.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/prefs/pref_registry_simple.h" | 9 #include "base/prefs/pref_registry_simple.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
76 #include "chrome/browser/ui/webui/flags_ui.h" | 76 #include "chrome/browser/ui/webui/flags_ui.h" |
77 #include "chrome/browser/ui/webui/instant_ui.h" | 77 #include "chrome/browser/ui/webui/instant_ui.h" |
78 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" | 78 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
79 #include "chrome/browser/ui/webui/plugins_ui.h" | 79 #include "chrome/browser/ui/webui/plugins_ui.h" |
80 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" | 80 #include "chrome/browser/ui/webui/print_preview/sticky_settings.h" |
81 #include "chrome/browser/upgrade_detector.h" | 81 #include "chrome/browser/upgrade_detector.h" |
82 #include "chrome/browser/web_resource/promo_resource_service.h" | 82 #include "chrome/browser/web_resource/promo_resource_service.h" |
83 #include "chrome/common/pref_names.h" | 83 #include "chrome/common/pref_names.h" |
84 #include "components/autofill/core/browser/autofill_manager.h" | 84 #include "components/autofill/core/browser/autofill_manager.h" |
85 #include "components/bookmarks/browser/bookmark_utils.h" | 85 #include "components/bookmarks/browser/bookmark_utils.h" |
86 #include "components/dom_distiller/core/reader_mode_preferences.h" | |
86 #include "components/google/core/browser/google_pref_names.h" | 87 #include "components/google/core/browser/google_pref_names.h" |
87 #include "components/google/core/browser/google_url_tracker.h" | 88 #include "components/google/core/browser/google_url_tracker.h" |
88 #include "components/network_time/network_time_tracker.h" | 89 #include "components/network_time/network_time_tracker.h" |
89 #include "components/password_manager/core/browser/password_manager.h" | 90 #include "components/password_manager/core/browser/password_manager.h" |
90 #include "components/pref_registry/pref_registry_syncable.h" | 91 #include "components/pref_registry/pref_registry_syncable.h" |
91 #include "components/rappor/rappor_service.h" | 92 #include "components/rappor/rappor_service.h" |
92 #include "components/sync_driver/sync_prefs.h" | 93 #include "components/sync_driver/sync_prefs.h" |
93 #include "components/translate/core/browser/translate_prefs.h" | 94 #include "components/translate/core/browser/translate_prefs.h" |
94 #include "content/public/browser/render_process_host.h" | 95 #include "content/public/browser/render_process_host.h" |
95 #include "extensions/browser/extension_prefs.h" | 96 #include "extensions/browser/extension_prefs.h" |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
406 #if defined(ENABLE_NOTIFICATIONS) | 407 #if defined(ENABLE_NOTIFICATIONS) |
407 DesktopNotificationService::RegisterProfilePrefs(registry); | 408 DesktopNotificationService::RegisterProfilePrefs(registry); |
408 #endif | 409 #endif |
409 | 410 |
410 #if defined(ENABLE_SERVICE_DISCOVERY) | 411 #if defined(ENABLE_SERVICE_DISCOVERY) |
411 LocalDiscoveryUI::RegisterProfilePrefs(registry); | 412 LocalDiscoveryUI::RegisterProfilePrefs(registry); |
412 #endif | 413 #endif |
413 | 414 |
414 #if defined(OS_ANDROID) | 415 #if defined(OS_ANDROID) |
415 chrome_variations::VariationsService::RegisterProfilePrefs(registry); | 416 chrome_variations::VariationsService::RegisterProfilePrefs(registry); |
417 dom_distiller::ReaderModePrefs::RegisterProfilePrefs(registry); | |
nyquist
2014/06/23 16:03:05
Why are these prefs only for Android?
If that is i
smaslo
2014/06/23 22:14:32
Done.
| |
416 NewTabPagePrefs::RegisterProfilePrefs(registry); | 418 NewTabPagePrefs::RegisterProfilePrefs(registry); |
417 PartnerBookmarksShim::RegisterProfilePrefs(registry); | 419 PartnerBookmarksShim::RegisterProfilePrefs(registry); |
418 #else | 420 #else |
419 AppShortcutManager::RegisterProfilePrefs(registry); | 421 AppShortcutManager::RegisterProfilePrefs(registry); |
420 autofill::GeneratedCreditCardBubbleController::RegisterUserPrefs(registry); | 422 autofill::GeneratedCreditCardBubbleController::RegisterUserPrefs(registry); |
421 DeviceIDFetcher::RegisterProfilePrefs(registry); | 423 DeviceIDFetcher::RegisterProfilePrefs(registry); |
422 DevToolsWindow::RegisterProfilePrefs(registry); | 424 DevToolsWindow::RegisterProfilePrefs(registry); |
423 extensions::CommandService::RegisterProfilePrefs(registry); | 425 extensions::CommandService::RegisterProfilePrefs(registry); |
424 extensions::ExtensionSettingsHandler::RegisterProfilePrefs(registry); | 426 extensions::ExtensionSettingsHandler::RegisterProfilePrefs(registry); |
425 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); | 427 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
591 #if defined(OS_CHROMEOS) | 593 #if defined(OS_CHROMEOS) |
592 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); | 594 chromeos::default_pinned_apps_field_trial::MigratePrefs(local_state); |
593 #endif | 595 #endif |
594 | 596 |
595 #if defined(TOOLKIT_VIEWS) | 597 #if defined(TOOLKIT_VIEWS) |
596 MigrateBrowserTabStripPrefs(local_state); | 598 MigrateBrowserTabStripPrefs(local_state); |
597 #endif | 599 #endif |
598 } | 600 } |
599 | 601 |
600 } // namespace chrome | 602 } // namespace chrome |
OLD | NEW |