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

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: Fix ios. 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 797759b77f88767ea2a0aa0b2707a32eb97b3a3e..8d5566e044e2e3bcb1c4203917ec3157612a5e1e 100644
--- a/components/ntp_snippets/ntp_snippets_service_unittest.cc
+++ b/components/ntp_snippets/ntp_snippets_service_unittest.cc
@@ -242,14 +242,14 @@ class NTPSnippetsServiceTest : public testing::Test {
new net::TestURLRequestContextGetter(task_runner.get());
service_.reset(new NTPSnippetsService(
- pref_service_.get(), nullptr, task_runner, std::string("fr"),
+ enabled, pref_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);
+ service_->Init();
}
protected:

Powered by Google App Engine
This is Rietveld 408576698