| Index: chrome/browser/dom_distiller/dom_distiller_service_factory.cc
|
| diff --git a/chrome/browser/dom_distiller/dom_distiller_service_factory.cc b/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
|
| index a4879386a9a4a6368ca2bee3e4b8ebcaac0a146f..035b8f461300c88195208ca40310ef85c8ef5e9a 100644
|
| --- a/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
|
| +++ b/chrome/browser/dom_distiller/dom_distiller_service_factory.cc
|
| @@ -16,8 +16,12 @@ namespace dom_distiller {
|
|
|
| DomDistillerContextKeyedService::DomDistillerContextKeyedService(
|
| scoped_ptr<DomDistillerStoreInterface> store,
|
| - scoped_ptr<DistillerFactory> distiller_factory)
|
| - : DomDistillerService(store.Pass(), distiller_factory.Pass()) {}
|
| + scoped_ptr<DistillerFactory> distiller_factory,
|
| + scoped_ptr<DistillerPageFactory> distiller_page_factory)
|
| + : DomDistillerService(store.Pass(),
|
| + distiller_factory.Pass(),
|
| + distiller_page_factory.Pass()) {
|
| +}
|
|
|
| // static
|
| DomDistillerServiceFactory* DomDistillerServiceFactory::GetInstance() {
|
| @@ -58,13 +62,14 @@ KeyedService* DomDistillerServiceFactory::BuildServiceInstanceFor(
|
| new DistillerPageWebContentsFactory(profile));
|
| scoped_ptr<DistillerURLFetcherFactory> distiller_url_fetcher_factory(
|
| new DistillerURLFetcherFactory(profile->GetRequestContext()));
|
| - scoped_ptr<DistillerFactory> distiller_factory(new DistillerFactoryImpl(
|
| - distiller_page_factory.Pass(), distiller_url_fetcher_factory.Pass()));
|
| + scoped_ptr<DistillerFactory> distiller_factory(
|
| + new DistillerFactoryImpl(distiller_url_fetcher_factory.Pass()));
|
|
|
| DomDistillerContextKeyedService* service =
|
| new DomDistillerContextKeyedService(
|
| dom_distiller_store.PassAs<DomDistillerStoreInterface>(),
|
| - distiller_factory.Pass());
|
| + distiller_factory.Pass(),
|
| + distiller_page_factory.Pass());
|
|
|
| return service;
|
| }
|
|
|