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

Unified Diff: ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc

Issue 2158373002: [NTP Snippets] Add a pref to disable the NTPSnippetsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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: ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc
diff --git a/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc b/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc
index 9f18e91de8237dba68097d3156ecf16d21a0e72b..ada71af068c638710e2939733585403f4e93cb9b 100644
--- a/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc
+++ b/ios/chrome/browser/ntp_snippets/ios_chrome_ntp_snippets_service_factory.cc
@@ -128,5 +128,5 @@ IOSChromeNTPSnippetsServiceFactory::BuildServiceInstanceFor(
base::WrapUnique(
new ntp_snippets::NTPSnippetsDatabase(database_dir, task_runner)),
base::WrapUnique(new ntp_snippets::NTPSnippetsStatusService(
- signin_manager, sync_service))));
+ signin_manager, sync_service, chrome_browser_state->GetPrefs()))));
}
« components/ntp_snippets/ntp_snippets_service.h ('K') | « components/ntp_snippets/pref_names.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698