| Index: ios/chrome/browser/reading_list/reading_list_download_service_factory.cc
|
| diff --git a/ios/chrome/browser/reading_list/reading_list_download_service_factory.cc b/ios/chrome/browser/reading_list/reading_list_download_service_factory.cc
|
| index 7507d7921bba396cd4a37e0fb474a67ea5add91e..874ec8ff350e0f11f7f11fb73aa3942e332e0f95 100644
|
| --- a/ios/chrome/browser/reading_list/reading_list_download_service_factory.cc
|
| +++ b/ios/chrome/browser/reading_list/reading_list_download_service_factory.cc
|
| @@ -7,9 +7,13 @@
|
| #include "base/files/file_path.h"
|
| #include "base/memory/singleton.h"
|
| #include "components/keyed_service/ios/browser_state_dependency_manager.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/dom_distiller_service_factory.h"
|
| +#include "ios/chrome/browser/favicon/favicon_service_factory.h"
|
| +#include "ios/chrome/browser/history/history_service_factory.h"
|
| +#include "ios/chrome/browser/reading_list/reading_list_distiller_page_factory.h"
|
| #include "ios/chrome/browser/reading_list/reading_list_download_service.h"
|
| #include "ios/chrome/browser/reading_list/reading_list_model_factory.h"
|
|
|
| @@ -33,6 +37,9 @@ ReadingListDownloadServiceFactory::ReadingListDownloadServiceFactory()
|
| BrowserStateDependencyManager::GetInstance()) {
|
| DependsOn(ReadingListModelFactory::GetInstance());
|
| DependsOn(dom_distiller::DomDistillerServiceFactory::GetInstance());
|
| + DependsOn(ios::FaviconServiceFactory::GetInstance());
|
| + DependsOn(ios::HistoryServiceFactory::GetInstance());
|
| + DependsOn(ios::BookmarkModelFactory::GetInstance());
|
| }
|
|
|
| ReadingListDownloadServiceFactory::~ReadingListDownloadServiceFactory() {}
|
| @@ -42,13 +49,20 @@ ReadingListDownloadServiceFactory::BuildServiceInstanceFor(
|
| web::BrowserState* context) const {
|
| ios::ChromeBrowserState* chrome_browser_state =
|
| ios::ChromeBrowserState::FromBrowserState(context);
|
| +
|
| + std::unique_ptr<reading_list::ReadingListDistillerPageFactory>
|
| + distiller_page_factory =
|
| + base::MakeUnique<reading_list::ReadingListDistillerPageFactory>(
|
| + context);
|
| +
|
| std::unique_ptr<ReadingListDownloadService> reading_list_download_service(
|
| new ReadingListDownloadService(
|
| ReadingListModelFactory::GetForBrowserState(chrome_browser_state),
|
| dom_distiller::DomDistillerServiceFactory::GetForBrowserState(
|
| chrome_browser_state),
|
| chrome_browser_state->GetPrefs(),
|
| - chrome_browser_state->GetStatePath()));
|
| + chrome_browser_state->GetStatePath(),
|
| + std::move(distiller_page_factory)));
|
| return std::move(reading_list_download_service);
|
| }
|
|
|
|
|