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

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

Issue 2718453002: ntp_snippets: default to staging API on dev/canary (Closed)
Patch Set: Use channel directly Created 3 years, 10 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: 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 8070663d7e9b358158a9ada5b00ae0717bfb2f32..7c96659fc7ff7735c05dc6b968b94d97e39be09e 100644
--- a/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
+++ b/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc
@@ -85,6 +85,7 @@ using ntp_snippets::BookmarkSuggestionsProvider;
using ntp_snippets::CategoryRanker;
using ntp_snippets::ContentSuggestionsService;
using ntp_snippets::ForeignSessionsSuggestionsProvider;
+using ntp_snippets::GetFetchEndpoint;
using ntp_snippets::PersistentScheduler;
using ntp_snippets::RemoteSuggestionsDatabase;
using ntp_snippets::RemoteSuggestionsFetcher;
@@ -189,6 +190,7 @@ void RegisterArticleProvider(SigninManagerBase* signin_manager,
auto suggestions_fetcher = base::MakeUnique<RemoteSuggestionsFetcher>(
signin_manager, token_service, request_context, pref_service,
language_model, base::Bind(&safe_json::SafeJsonParser::Parse),
+ GetFetchEndpoint(chrome::GetChannel()),
is_stable_channel ? google_apis::GetAPIKey()
: google_apis::GetNonStableAPIKey(),
service->user_classifier());
« no previous file with comments | « no previous file | components/ntp_snippets/BUILD.gn » ('j') | components/ntp_snippets/remote/remote_suggestions_fetcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698