Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: chrome/browser/prefs/browser_prefs.cc

Issue 2585263002: [NTP::SectionOrder] First version of click based category ranker. (Closed)
Patch Set: tschumann@ & bauerb@ comments. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/ntp_snippets/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 #include "chrome/browser/android/ntp/new_tab_page_prefs.h" 159 #include "chrome/browser/android/ntp/new_tab_page_prefs.h"
160 #include "components/ntp_tiles/popular_sites_impl.h" 160 #include "components/ntp_tiles/popular_sites_impl.h"
161 #else 161 #else
162 #include "chrome/browser/ui/startup/startup_browser_creator.h" 162 #include "chrome/browser/ui/startup/startup_browser_creator.h"
163 #include "chrome/browser/upgrade_detector.h" 163 #include "chrome/browser/upgrade_detector.h"
164 #endif 164 #endif
165 165
166 #if defined(OS_ANDROID) 166 #if defined(OS_ANDROID)
167 #include "chrome/browser/android/preferences/browser_prefs_android.h" 167 #include "chrome/browser/android/preferences/browser_prefs_android.h"
168 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h" 168 #include "chrome/browser/ntp_snippets/download_suggestions_provider.h"
169 #include "components/ntp_snippets/category_rankers/click_based_category_ranker.h "
169 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider. h" 170 #include "components/ntp_snippets/offline_pages/recent_tab_suggestions_provider. h"
170 #include "components/ntp_snippets/physical_web_pages/physical_web_page_suggestio ns_provider.h" 171 #include "components/ntp_snippets/physical_web_pages/physical_web_page_suggestio ns_provider.h"
171 #else 172 #else
172 #include "chrome/browser/services/gcm/gcm_product_util.h" 173 #include "chrome/browser/services/gcm/gcm_product_util.h"
173 #include "chrome/browser/signin/signin_promo.h" 174 #include "chrome/browser/signin/signin_promo.h"
174 #include "chrome/browser/ui/webui/foreign_session_handler.h" 175 #include "chrome/browser/ui/webui/foreign_session_handler.h"
175 #endif 176 #endif
176 177
177 #if defined(OS_CHROMEOS) 178 #if defined(OS_CHROMEOS)
178 #include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.h" 179 #include "chrome/browser/chromeos/app_mode/arc/arc_kiosk_app_manager.h"
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry); 584 extensions::TabsCaptureVisibleTabFunction::RegisterProfilePrefs(registry);
584 first_run::RegisterProfilePrefs(registry); 585 first_run::RegisterProfilePrefs(registry);
585 NewTabUI::RegisterProfilePrefs(registry); 586 NewTabUI::RegisterProfilePrefs(registry);
586 PepperFlashSettingsManager::RegisterProfilePrefs(registry); 587 PepperFlashSettingsManager::RegisterProfilePrefs(registry);
587 PinnedTabCodec::RegisterProfilePrefs(registry); 588 PinnedTabCodec::RegisterProfilePrefs(registry);
588 signin::RegisterProfilePrefs(registry); 589 signin::RegisterProfilePrefs(registry);
589 #endif 590 #endif
590 591
591 #if defined(OS_ANDROID) 592 #if defined(OS_ANDROID)
592 DownloadSuggestionsProvider::RegisterProfilePrefs(registry); 593 DownloadSuggestionsProvider::RegisterProfilePrefs(registry);
594 ntp_snippets::ClickBasedCategoryRanker::RegisterProfilePrefs(registry);
593 ntp_snippets::PhysicalWebPageSuggestionsProvider::RegisterProfilePrefs( 595 ntp_snippets::PhysicalWebPageSuggestionsProvider::RegisterProfilePrefs(
594 registry); 596 registry);
595 ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry); 597 ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry);
596 #endif // defined(OS_ANDROID) 598 #endif // defined(OS_ANDROID)
597 599
598 #if !defined(OS_ANDROID) 600 #if !defined(OS_ANDROID)
599 browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry); 601 browser_sync::ForeignSessionHandler::RegisterProfilePrefs(registry);
600 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry); 602 gcm::GCMChannelStatusSyncer::RegisterProfilePrefs(registry);
601 gcm::RegisterProfilePrefs(registry); 603 gcm::RegisterProfilePrefs(registry);
602 StartupBrowserCreator::RegisterProfilePrefs(registry); 604 StartupBrowserCreator::RegisterProfilePrefs(registry);
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 // Added 8/2016. 795 // Added 8/2016.
794 profile_prefs->ClearPref(kStaticEncodings); 796 profile_prefs->ClearPref(kStaticEncodings);
795 profile_prefs->ClearPref(kRecentlySelectedEncoding); 797 profile_prefs->ClearPref(kRecentlySelectedEncoding);
796 798
797 // Added 9/2016. 799 // Added 9/2016.
798 profile_prefs->ClearPref(kWebKitUsesUniversalDetector); 800 profile_prefs->ClearPref(kWebKitUsesUniversalDetector);
799 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent); 801 profile_prefs->ClearPref(kWebKitAllowDisplayingInsecureContent);
800 } 802 }
801 803
802 } // namespace chrome 804 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | components/ntp_snippets/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698