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

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: Rebase. 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 5399288611f471d40671008d287232e4646573ce..2a19f0aac40619e6d7fdf2d209b3cd96d3ebee93 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"
@@ -49,8 +50,11 @@ KeyedService* SuggestionsServiceFactory::BuildServiceInstanceFor(
new SuggestionsStore(the_profile->GetPrefs()));
scoped_ptr<ThumbnailManager> thumbnail_manager(
new ThumbnailManager(the_profile->GetRequestContext()));
+ scoped_ptr<BlacklistStore> blacklist_store(
+ new BlacklistStore(the_profile->GetPrefs()));
return new SuggestionsService(the_profile, suggestions_store.Pass(),
- thumbnail_manager.Pass());
+ thumbnail_manager.Pass(),
+ blacklist_store.Pass());
}
void SuggestionsServiceFactory::RegisterProfilePrefs(

Powered by Google App Engine
This is Rietveld 408576698