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

Unified Diff: components/ntp_snippets/ntp_snippets_service_unittest.cc

Issue 1997473004: Snippets are enabled when search suggestions are enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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/ntp_snippets_service_unittest.cc
diff --git a/components/ntp_snippets/ntp_snippets_service_unittest.cc b/components/ntp_snippets/ntp_snippets_service_unittest.cc
index 0141584b4fcd151e524693a5ea8e584807859773..2307a4baef113a10371f20fe3a72c39ca5b12f20 100644
--- a/components/ntp_snippets/ntp_snippets_service_unittest.cc
+++ b/components/ntp_snippets/ntp_snippets_service_unittest.cc
@@ -278,14 +278,13 @@ class NTPSnippetsServiceTest : public testing::Test {
new net::TestURLRequestContextGetter(task_runner.get());
service_.reset(new NTPSnippetsService(
- pref_service_.get(), mock_sync_service_.get(), nullptr, task_runner,
- std::string("fr"), &scheduler_,
+ enabled, pref_service_.get(), mock_sync_service_.get(), nullptr,
+ task_runner, std::string("fr"), &scheduler_,
base::WrapUnique(new NTPSnippetsFetcher(
fake_signin_manager_.get(), fake_token_service_.get(),
std::move(request_context_getter), base::Bind(&ParseJson),
/*is_stable_channel=*/true)),
/*image_fetcher=*/nullptr));
- service_->Init(enabled);
}
protected:

Powered by Google App Engine
This is Rietveld 408576698