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

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

Issue 2568133005: [SuggestionsService] Split SuggestionsService interface from impl (Closed)
Patch Set: Moved impl to dedicated file. Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/search/suggestions/suggestions_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 93ce520a0c848ca05a6a5c0ebba3f63e038244ee..6a063f7bc7b1cd12d6a5bdb7ca7abaede43ace99 100644
--- a/chrome/browser/search/suggestions/suggestions_service_factory.cc
+++ b/chrome/browser/search/suggestions/suggestions_service_factory.cc
@@ -27,7 +27,7 @@
#include "components/suggestions/blacklist_store.h"
#include "components/suggestions/image_manager.h"
#include "components/suggestions/proto/suggestions.pb.h"
-#include "components/suggestions/suggestions_service.h"
+#include "components/suggestions/suggestions_service_impl.h"
#include "components/suggestions/suggestions_store.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
@@ -92,7 +92,7 @@ KeyedService* SuggestionsServiceFactory::BuildServiceInstanceFor(
std::unique_ptr<ImageManager> thumbnail_manager(new ImageManager(
std::move(image_fetcher), std::move(db), database_dir,
BrowserThread::GetTaskRunnerForThread(BrowserThread::DB)));
- return new SuggestionsService(
+ return new SuggestionsServiceImpl(
signin_manager, token_service, sync_service, profile->GetRequestContext(),
std::move(suggestions_store), std::move(thumbnail_manager),
std::move(blacklist_store));
@@ -100,7 +100,7 @@ KeyedService* SuggestionsServiceFactory::BuildServiceInstanceFor(
void SuggestionsServiceFactory::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
- SuggestionsService::RegisterProfilePrefs(registry);
+ SuggestionsServiceImpl::RegisterProfilePrefs(registry);
}
} // namespace suggestions
« no previous file with comments | « no previous file | chrome/browser/search/suggestions/suggestions_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698