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

Unified Diff: chrome/browser/search/suggestions/suggestions_service_factory.cc

Issue 330473003: Offline blacklisting for SuggestionsService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add UMA logging of local blacklist Created 6 years, 6 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/search/suggestions/suggestions_service_factory.cc
diff --git a/chrome/browser/search/suggestions/suggestions_service_factory.cc b/chrome/browser/search/suggestions/suggestions_service_factory.cc
index ea54cc55cb71ab909e098b79b538c2c4b59ecc8d..305194afe101b988d9fffe3255888fb511dfc0dc 100644
--- a/chrome/browser/search/suggestions/suggestions_service_factory.cc
+++ b/chrome/browser/search/suggestions/suggestions_service_factory.cc
@@ -7,6 +7,7 @@
#include "base/prefs/pref_service.h"
#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/search/suggestions/blacklist_store.h"
#include "chrome/browser/search/suggestions/suggestions_service.h"
#include "chrome/browser/search/suggestions/suggestions_store.h"
#include "chrome/common/pref_names.h"
@@ -47,7 +48,10 @@ KeyedService* SuggestionsServiceFactory::BuildServiceInstanceFor(
Profile* the_profile = static_cast<Profile*>(profile);
scoped_ptr<SuggestionsStore> suggestions_store(
new SuggestionsStore(the_profile->GetPrefs()));
- return new SuggestionsService(the_profile, suggestions_store.Pass());
+ scoped_ptr<BlacklistStore> blacklist_store(
+ new BlacklistStore(the_profile->GetPrefs()));
+ return new SuggestionsService(the_profile, suggestions_store.Pass(),
+ blacklist_store.Pass());
}
void SuggestionsServiceFactory::RegisterProfilePrefs(

Powered by Google App Engine
This is Rietveld 408576698