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/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 153 |
154 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) | 154 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) |
155 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" | 155 #include "chrome/browser/ui/webui/local_discovery/local_discovery_ui.h" |
156 #endif | 156 #endif |
157 | 157 |
158 #if defined(OS_ANDROID) | 158 #if defined(OS_ANDROID) |
159 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" | 159 #include "chrome/browser/android/bookmarks/partner_bookmarks_shim.h" |
160 #include "chrome/browser/android/ntp/content_suggestions_notifier_service.h" | 160 #include "chrome/browser/android/ntp/content_suggestions_notifier_service.h" |
161 #include "chrome/browser/android/ntp/recent_tabs_page_prefs.h" | 161 #include "chrome/browser/android/ntp/recent_tabs_page_prefs.h" |
162 #include "chrome/browser/android/preferences/browser_prefs_android.h" | 162 #include "chrome/browser/android/preferences/browser_prefs_android.h" |
| 163 #include "chrome/browser/media/android/cdm/media_drm_storage_impl.h" |
163 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h" | 164 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h" |
164 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h
" | 165 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h
" |
165 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.
h" | 166 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.
h" |
166 #include "components/ntp_snippets/physical_web_pages/physical_web_page_suggestio
ns_provider.h" | 167 #include "components/ntp_snippets/physical_web_pages/physical_web_page_suggestio
ns_provider.h" |
167 #include "components/ntp_tiles/popular_sites_impl.h" | 168 #include "components/ntp_tiles/popular_sites_impl.h" |
168 #else | 169 #else |
169 #include "chrome/browser/gcm/gcm_product_util.h" | 170 #include "chrome/browser/gcm/gcm_product_util.h" |
170 #include "chrome/browser/signin/signin_promo.h" | 171 #include "chrome/browser/signin/signin_promo.h" |
171 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 172 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
172 #include "chrome/browser/ui/webui/foreign_session_handler.h" | 173 #include "chrome/browser/ui/webui/foreign_session_handler.h" |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); | 565 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); |
565 NewTabUI::RegisterProfilePrefs(registry); | 566 NewTabUI::RegisterProfilePrefs(registry); |
566 PepperFlashSettingsManager::RegisterProfilePrefs(registry); | 567 PepperFlashSettingsManager::RegisterProfilePrefs(registry); |
567 PinnedTabCodec::RegisterProfilePrefs(registry); | 568 PinnedTabCodec::RegisterProfilePrefs(registry); |
568 signin::RegisterProfilePrefs(registry); | 569 signin::RegisterProfilePrefs(registry); |
569 #endif | 570 #endif |
570 | 571 |
571 #if defined(OS_ANDROID) | 572 #if defined(OS_ANDROID) |
572 ContentSuggestionsNotifierService::RegisterProfilePrefs(registry); | 573 ContentSuggestionsNotifierService::RegisterProfilePrefs(registry); |
573 DownloadSuggestionsProvider::RegisterProfilePrefs(registry); | 574 DownloadSuggestionsProvider::RegisterProfilePrefs(registry); |
| 575 MediaDrmStorageImpl::RegisterProfilePrefs(registry); |
574 ntp_snippets::ClickBasedCategoryRanker::RegisterProfilePrefs(registry); | 576 ntp_snippets::ClickBasedCategoryRanker::RegisterProfilePrefs(registry); |
575 ntp_snippets::PhysicalWebPageSuggestionsProvider::RegisterProfilePrefs( | 577 ntp_snippets::PhysicalWebPageSuggestionsProvider::RegisterProfilePrefs( |
576 registry); | 578 registry); |
577 ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry); | 579 ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry); |
578 #endif // defined(OS_ANDROID) | 580 #endif // defined(OS_ANDROID) |
579 | 581 |
580 #if !defined(OS_ANDROID) | 582 #if !defined(OS_ANDROID) |
581 browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry); | 583 browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry); |
582 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); | 584 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); |
583 gcm::RegisterProfilePrefs(registry); | 585 gcm::RegisterProfilePrefs(registry); |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 if (distro_dict && | 767 if (distro_dict && |
766 distro_dict->GetInteger(kDistroRlzPingDelay, &rlz_ping_delay)) { | 768 distro_dict->GetInteger(kDistroRlzPingDelay, &rlz_ping_delay)) { |
767 profile_prefs->SetInteger(prefs::kRlzPingDelaySeconds, rlz_ping_delay); | 769 profile_prefs->SetInteger(prefs::kRlzPingDelaySeconds, rlz_ping_delay); |
768 } | 770 } |
769 #endif // BUILDFLAG(ENABLE_RLZ) | 771 #endif // BUILDFLAG(ENABLE_RLZ) |
770 profile_prefs->ClearPref(kDistroDict); | 772 profile_prefs->ClearPref(kDistroDict); |
771 } | 773 } |
772 } | 774 } |
773 | 775 |
774 } // namespace chrome | 776 } // namespace chrome |
OLD | NEW |