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

Unified Diff: ios/chrome/browser/dom_distiller/dom_distiller_service_factory.cc

Issue 2667533003: Allow DomDistillerService to have no store. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « components/dom_distiller/core/dom_distiller_service.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/dom_distiller/dom_distiller_service_factory.cc
diff --git a/ios/chrome/browser/dom_distiller/dom_distiller_service_factory.cc b/ios/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
index 918d4e1c1a9bf8f84e2bdc80633fa5184834cce6..c6decb7bf939742b51a857040ff416e735d61075 100644
--- a/ios/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
+++ b/ios/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
@@ -74,19 +74,6 @@ DomDistillerServiceFactory::~DomDistillerServiceFactory() {}
std::unique_ptr<KeyedService>
DomDistillerServiceFactory::BuildServiceInstanceFor(
web::BrowserState* context) const {
- scoped_refptr<base::SequencedTaskRunner> background_task_runner =
- web::WebThread::GetBlockingPool()->GetSequencedTaskRunner(
- web::WebThread::GetBlockingPool()->GetSequenceToken());
-
- std::unique_ptr<leveldb_proto::ProtoDatabaseImpl<ArticleEntry>> db =
- base::MakeUnique<leveldb_proto::ProtoDatabaseImpl<ArticleEntry>>(
- background_task_runner);
-
- base::FilePath database_dir(
- context->GetStatePath().Append(FILE_PATH_LITERAL("Articles")));
-
- std::unique_ptr<DomDistillerStore> dom_distiller_store =
- base::MakeUnique<DomDistillerStore>(std::move(db), database_dir);
std::unique_ptr<DistillerPageFactory> distiller_page_factory =
base::MakeUnique<DistillerPageFactoryIOS>(context);
@@ -104,8 +91,8 @@ DomDistillerServiceFactory::BuildServiceInstanceFor(
ios::ChromeBrowserState::FromBrowserState(context)->GetPrefs());
return base::MakeUnique<DomDistillerKeyedService>(
- std::move(dom_distiller_store), std::move(distiller_factory),
- std::move(distiller_page_factory), std::move(distilled_page_prefs));
+ nullptr, std::move(distiller_factory), std::move(distiller_page_factory),
+ std::move(distilled_page_prefs));
}
web::BrowserState* DomDistillerServiceFactory::GetBrowserStateToUse(
« no previous file with comments | « components/dom_distiller/core/dom_distiller_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698