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

Unified Diff: ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc

Issue 2790743003: [Content suggestions] Implement fetching publishers' favicons (Closed)
Patch Set: Minor fix Created 3 years, 8 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 | « ios/chrome/browser/ntp_snippets/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
diff --git a/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc b/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
index 02e149dba47136bb403ea158b124f64bf8504c54..375ee4b689bbd58920e34f56a52594faa3381562 100644
--- a/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
+++ b/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc
@@ -42,6 +42,7 @@
#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/bookmarks/bookmark_model_factory.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
+#include "ios/chrome/browser/favicon/ios_chrome_large_icon_service_factory.h"
#include "ios/chrome/browser/history/history_service_factory.h"
#include "ios/chrome/browser/reading_list/reading_list_model_factory.h"
#include "ios/chrome/browser/signin/oauth2_token_service_factory.h"
@@ -107,6 +108,7 @@ IOSChromeContentSuggestionsServiceFactory::
BrowserStateDependencyManager::GetInstance()) {
DependsOn(BookmarkModelFactory::GetInstance());
DependsOn(ios::HistoryServiceFactory::GetInstance());
+ DependsOn(IOSChromeLargeIconServiceFactory::GetInstance());
DependsOn(OAuth2TokenServiceFactory::GetInstance());
DependsOn(ios::SigninManagerFactory::GetInstance());
DependsOn(ReadingListModelFactory::GetInstance());
@@ -140,13 +142,16 @@ IOSChromeContentSuggestionsServiceFactory::BuildServiceInstanceFor(
HistoryService* history_service =
ios::HistoryServiceFactory::GetForBrowserState(
chrome_browser_state, ServiceAccessType::EXPLICIT_ACCESS);
+ favicon::LargeIconService* large_icon_service =
+ IOSChromeLargeIconServiceFactory::GetForBrowserState(
+ chrome_browser_state);
std::unique_ptr<ntp_snippets::CategoryRanker> category_ranker =
ntp_snippets::BuildSelectedCategoryRanker(
prefs, base::MakeUnique<base::DefaultClock>());
std::unique_ptr<ContentSuggestionsService> service =
base::MakeUnique<ContentSuggestionsService>(
- State::ENABLED, signin_manager, history_service, prefs,
- std::move(category_ranker), std::move(user_classifier),
+ State::ENABLED, signin_manager, history_service, large_icon_service,
+ prefs, std::move(category_ranker), std::move(user_classifier),
std::move(scheduler));
// Create the BookmarkSuggestionsProvider.
« no previous file with comments | « ios/chrome/browser/ntp_snippets/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698