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

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: Add parameter name 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..6747a80af6a2130ea56fcdaa275d1b1a1616237f 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() >= version_info::Channel::BETA),
Marc Treib 2017/02/23 13:57:14 nit: Can we list STABLE and BETA explicitly? IMO i
sfiera 2017/02/23 14:48:10 Obsolete.
is_stable_channel ? google_apis::GetAPIKey()
: google_apis::GetNonStableAPIKey(),
service->user_classifier());

Powered by Google App Engine
This is Rietveld 408576698