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 2367b1283b5611de59c520080d8efea42230adb7..e2c1628573d0fec041c829c923a852d419209985 100644 |
--- a/ios/chrome/browser/dom_distiller/dom_distiller_service_factory.cc |
+++ b/ios/chrome/browser/dom_distiller/dom_distiller_service_factory.cc |
@@ -9,6 +9,7 @@ |
#include "base/files/file_path.h" |
#include "base/macros.h" |
#include "base/memory/ptr_util.h" |
+#include "base/memory/ptr_util.h" |
#include "base/memory/singleton.h" |
#include "base/threading/sequenced_worker_pool.h" |
#include "components/dom_distiller/core/article_entry.h" |
@@ -22,6 +23,7 @@ |
#include "components/leveldb_proto/proto_database_impl.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_observer_factory_impl.h" |
#include "ios/web/public/browser_state.h" |
#include "ios/web/public/web_thread.h" |
@@ -90,8 +92,12 @@ DomDistillerServiceFactory::BuildServiceInstanceFor( |
std::unique_ptr<DomDistillerStore> dom_distiller_store( |
new DomDistillerStore(std::move(db), database_dir)); |
+ std::unique_ptr<FaviconObserverFactory> web_controller_provider_factory = |
kkhorimoto
2016/12/08 22:15:24
s/web_controller_provider/favicon_observer for var
|
+ base::MakeUnique<FaviconObserverFactoryImpl>(); |
std::unique_ptr<DistillerPageFactory> distiller_page_factory( |
- new DistillerPageFactoryIOS(context)); |
+ new DistillerPageFactoryIOS(context, |
+ web_controller_provider_factory.get())); |
+ |
std::unique_ptr<DistillerURLFetcherFactory> distiller_url_fetcher_factory( |
new DistillerURLFetcherFactory(context->GetRequestContext())); |