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

Unified Diff: components/ntp_snippets/remote/remote_suggestions_fetcher_unittest.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: components/ntp_snippets/remote/remote_suggestions_fetcher_unittest.cc
diff --git a/components/ntp_snippets/remote/remote_suggestions_fetcher_unittest.cc b/components/ntp_snippets/remote/remote_suggestions_fetcher_unittest.cc
index a75bcfe0a4bdb6e52fdcfcf5e5c24ebd72178b82..16c7d707aa7a037d2862b1e1e10bca4b96ff76c2 100644
--- a/components/ntp_snippets/remote/remote_suggestions_fetcher_unittest.cc
+++ b/components/ntp_snippets/remote/remote_suggestions_fetcher_unittest.cc
@@ -302,7 +302,9 @@ class RemoteSuggestionsFetcherTestBase : public testing::Test {
fetcher_ = base::MakeUnique<RemoteSuggestionsFetcher>(
utils_.fake_signin_manager(), fake_token_service_.get(),
std::move(request_context_getter), utils_.pref_service(), nullptr,
- base::Bind(&ParseJsonDelayed), kAPIKey, user_classifier_.get());
+ base::Bind(&ParseJsonDelayed),
+ GetFetchEndpoint(version_info::Channel::STABLE), kAPIKey,
+ user_classifier_.get());
fetcher_->SetClockForTesting(mock_task_runner_->GetMockClock());
}

Powered by Google App Engine
This is Rietveld 408576698