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

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: Fix iOS compilation Created 3 years, 9 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
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 924c698e0a4f147f7fd0b5e5f40d4b3e1f79da3b..6fc4406ea22ed03847c235f73cd955d9448cb59b 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
@@ -40,6 +40,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/signin/oauth2_token_service_factory.h"
#include "ios/chrome/browser/signin/signin_manager_factory.h"
@@ -104,6 +105,7 @@ IOSChromeContentSuggestionsServiceFactory::
BrowserStateDependencyManager::GetInstance()) {
DependsOn(BookmarkModelFactory::GetInstance());
DependsOn(ios::HistoryServiceFactory::GetInstance());
+ DependsOn(IOSChromeLargeIconServiceFactory::GetInstance());
DependsOn(OAuth2TokenServiceFactory::GetInstance());
DependsOn(ios::SigninManagerFactory::GetInstance());
}
@@ -136,13 +138,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.

Powered by Google App Engine
This is Rietveld 408576698