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

Unified Diff: chrome/browser/profiles/profile_manager.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: chrome/browser/profiles/profile_manager.cc
diff --git a/chrome/browser/profiles/profile_manager.cc b/chrome/browser/profiles/profile_manager.cc
index 93a514c661c5c7ff8c884352d77100a423ca809f..60eeafb6d7a743f2a621e20906fb0ebbf00e0d40 100644
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -108,7 +108,6 @@
#endif
#if defined(OS_ANDROID)
-#include "chrome/browser/android/chrome_feature_list.h"
#include "chrome/browser/ntp_snippets/ntp_snippets_service_factory.h"
#include "components/ntp_snippets/ntp_snippets_service.h"
#endif
@@ -1230,10 +1229,7 @@ void ProfileManager::DoFinalInitForServices(Profile* profile,
#if defined(OS_ANDROID)
// Service is responsible for fetching content snippets for the NTP.
- // Note: Create the service even if the feature is disabled, so that any
- // remaining tasks will be cleaned up.
- NTPSnippetsServiceFactory::GetForProfile(profile)->Init(
- base::FeatureList::IsEnabled(chrome::android::kNTPSnippetsFeature));
+ NTPSnippetsServiceFactory::GetForProfile(profile);
#endif
}
« no previous file with comments | « chrome/browser/ntp_snippets/ntp_snippets_service_factory.cc ('k') | components/ntp_snippets/ntp_snippets_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698