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

Unified Diff: chrome/browser/ntp_snippets/content_suggestions_service_factory.cc

Issue 2599293002: [NTP::SectionOrder] Implement click counts decay. (Closed)
Patch Set: ios factory. Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/ntp_snippets/category_rankers/click_based_category_ranker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
diff --git a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
index 84882dbb62c29c8d245b3dfd38c031beec717352..24131bcd37ee0ee0bb836f453a74124dc518d5ab 100644
--- a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
+++ b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
@@ -10,6 +10,7 @@
#include "base/files/file_path.h"
#include "base/memory/ptr_util.h"
#include "base/memory/singleton.h"
+#include "base/time/default_clock.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/history/history_service_factory.h"
@@ -254,7 +255,8 @@ KeyedService* ContentSuggestionsServiceFactory::BuildServiceInstanceFor(
profile, ServiceAccessType::EXPLICIT_ACCESS);
PrefService* pref_service = profile->GetPrefs();
std::unique_ptr<CategoryRanker> category_ranker =
- ntp_snippets::BuildSelectedCategoryRanker(pref_service);
+ ntp_snippets::BuildSelectedCategoryRanker(
+ pref_service, base::MakeUnique<base::DefaultClock>());
auto* service =
new ContentSuggestionsService(state, signin_manager, history_service,
pref_service, std::move(category_ranker));
« no previous file with comments | « no previous file | components/ntp_snippets/category_rankers/click_based_category_ranker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698