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 1b1765a480fcd2d48fb5b3afe34eb062dcff326c..9bdcc237638f8a7723792e07ce15038942fbbac8 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 |
@@ -53,6 +53,7 @@ using image_fetcher::ImageFetcherImpl; |
using ios::BookmarkModelFactory; |
using ntp_snippets::BookmarkSuggestionsProvider; |
using ntp_snippets::ContentSuggestionsService; |
+using ntp_snippets::GetFetchEndpoint; |
using ntp_snippets::PersistentScheduler; |
using ntp_snippets::RemoteSuggestionsDatabase; |
using ntp_snippets::RemoteSuggestionsFetcher; |
@@ -157,9 +158,10 @@ IOSChromeContentSuggestionsServiceFactory::BuildServiceInstanceFor( |
auto suggestions_fetcher = base::MakeUnique<RemoteSuggestionsFetcher>( |
signin_manager, token_service, request_context, prefs, nullptr, |
- base::Bind(&ParseJson), GetChannel() == version_info::Channel::STABLE |
- ? google_apis::GetAPIKey() |
- : google_apis::GetNonStableAPIKey(), |
+ base::Bind(&ParseJson), GetFetchEndpoint(GetChannel()), |
+ GetChannel() == version_info::Channel::STABLE |
+ ? google_apis::GetAPIKey() |
+ : google_apis::GetNonStableAPIKey(), |
service->user_classifier()); |
auto provider = base::MakeUnique<RemoteSuggestionsProviderImpl>( |