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

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

Issue 2604773002: Create distiller files for Reading List. (Closed)
Patch Set: feedback Created 3 years, 12 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: 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 23a86a1f3b5e5a529fd9fc678937a8fd6bce3338..918d4e1c1a9bf8f84e2bdc80633fa5184834cce6 100644
--- a/ios/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
+++ b/ios/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
@@ -20,12 +20,8 @@
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
#include "components/leveldb_proto/proto_database.h"
#include "components/leveldb_proto/proto_database_impl.h"
-#include "ios/chrome/browser/bookmarks/bookmark_model_factory.h"
#include "ios/chrome/browser/browser_state/browser_state_otr_helper.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state.h"
-#include "ios/chrome/browser/dom_distiller/favicon_web_state_dispatcher_impl.h"
-#include "ios/chrome/browser/favicon/favicon_service_factory.h"
-#include "ios/chrome/browser/history/history_service_factory.h"
#include "ios/web/public/browser_state.h"
#include "ios/web/public/web_thread.h"
@@ -71,9 +67,6 @@ DomDistillerServiceFactory::DomDistillerServiceFactory()
: BrowserStateKeyedServiceFactory(
"DomDistillerService",
BrowserStateDependencyManager::GetInstance()) {
- DependsOn(ios::FaviconServiceFactory::GetInstance());
- DependsOn(ios::HistoryServiceFactory::GetInstance());
- DependsOn(ios::BookmarkModelFactory::GetInstance());
}
DomDistillerServiceFactory::~DomDistillerServiceFactory() {}
@@ -95,11 +88,8 @@ DomDistillerServiceFactory::BuildServiceInstanceFor(
std::unique_ptr<DomDistillerStore> dom_distiller_store =
base::MakeUnique<DomDistillerStore>(std::move(db), database_dir);
- std::unique_ptr<FaviconWebStateDispatcher> web_state_dispatcher =
- base::MakeUnique<FaviconWebStateDispatcherImpl>(context, -1);
std::unique_ptr<DistillerPageFactory> distiller_page_factory =
- base::MakeUnique<DistillerPageFactoryIOS>(
- std::move(web_state_dispatcher));
+ base::MakeUnique<DistillerPageFactoryIOS>(context);
std::unique_ptr<DistillerURLFetcherFactory> distiller_url_fetcher_factory =
base::MakeUnique<DistillerURLFetcherFactory>(

Powered by Google App Engine
This is Rietveld 408576698