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

Unified Diff: ios/chrome/browser/suggestions/suggestions_service_factory.mm

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 | « components/suggestions/suggestions_service_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/suggestions/suggestions_service_factory.mm
diff --git a/ios/chrome/browser/suggestions/suggestions_service_factory.mm b/ios/chrome/browser/suggestions/suggestions_service_factory.mm
index 2e9f464130b7b1182689fe328f4e5a8d14cbdcee..9d1b023f5bcdd062bfa26fcd6b34d76153de6b87 100644
--- a/ios/chrome/browser/suggestions/suggestions_service_factory.mm
+++ b/ios/chrome/browser/suggestions/suggestions_service_factory.mm
@@ -19,7 +19,7 @@
#include "components/signin/core/browser/signin_manager.h"
#include "components/suggestions/blacklist_store.h"
#include "components/suggestions/image_manager.h"
-#include "components/suggestions/suggestions_service.h"
+#include "components/suggestions/suggestions_service_impl.h"
#include "components/suggestions/suggestions_store.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
#include "ios/chrome/browser/signin/oauth2_token_service_factory.h"
@@ -90,7 +90,7 @@ SuggestionsServiceFactory::BuildServiceInstanceFor(
std::unique_ptr<ImageManager> thumbnail_manager(new ImageManager(
std::move(image_fetcher), std::move(db), database_dir,
web::WebThread::GetTaskRunnerForThread(web::WebThread::DB)));
- return base::MakeUnique<SuggestionsService>(
+ return base::MakeUnique<SuggestionsServiceImpl>(
signin_manager, token_service, sync_service,
browser_state->GetRequestContext(), std::move(suggestions_store),
std::move(thumbnail_manager), std::move(blacklist_store));
@@ -98,7 +98,7 @@ SuggestionsServiceFactory::BuildServiceInstanceFor(
void SuggestionsServiceFactory::RegisterBrowserStatePrefs(
user_prefs::PrefRegistrySyncable* registry) {
- SuggestionsService::RegisterProfilePrefs(registry);
+ SuggestionsServiceImpl::RegisterProfilePrefs(registry);
}
} // namespace suggestions
« no previous file with comments | « components/suggestions/suggestions_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698