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

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

Issue 2519053002: 📰 Let the backend trigger sign in related refreshes (Closed)
Patch Set: Fix iOS build Created 4 years, 1 month 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 | « components/ntp_snippets/remote/remote_suggestions_provider.cc ('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 f8a4138e446a25c7c2f9bf42e68972c68098dc05..63a4202788da68d9f9530e0fa3d3588f0a6ab044 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
@@ -115,12 +115,14 @@ IOSChromeContentSuggestionsServiceFactory::BuildServiceInstanceFor(
base::FeatureList::IsEnabled(ntp_snippets::kContentSuggestionsFeature)
? State::ENABLED
: State::DISABLED;
+ SigninManager* signin_manager =
+ ios::SigninManagerFactory::GetForBrowserState(chrome_browser_state);
HistoryService* history_service =
ios::HistoryServiceFactory::GetForBrowserState(
chrome_browser_state, ServiceAccessType::EXPLICIT_ACCESS);
std::unique_ptr<ContentSuggestionsService> service =
- base::MakeUnique<ContentSuggestionsService>(state, history_service,
- prefs);
+ base::MakeUnique<ContentSuggestionsService>(state, signin_manager,
+ history_service, prefs);
if (state == State::DISABLED)
return std::move(service);
@@ -136,8 +138,6 @@ IOSChromeContentSuggestionsServiceFactory::BuildServiceInstanceFor(
if (base::FeatureList::IsEnabled(ntp_snippets::kArticleSuggestionsFeature)) {
// Create the RemoteSuggestionsProvider (articles provider).
- SigninManager* signin_manager =
- ios::SigninManagerFactory::GetForBrowserState(chrome_browser_state);
OAuth2TokenService* token_service =
OAuth2TokenServiceFactory::GetForBrowserState(chrome_browser_state);
scoped_refptr<net::URLRequestContextGetter> request_context =
« no previous file with comments | « components/ntp_snippets/remote/remote_suggestions_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698