Index: components/dom_distiller/core/dom_distiller_service.cc |
diff --git a/components/dom_distiller/core/dom_distiller_service.cc b/components/dom_distiller/core/dom_distiller_service.cc |
index fd1405d02a3ff69de93b65fdaf50f1499b19bb10..bc24690dc6bbb61b5166912a2214e7de394b8d1a 100644 |
--- a/components/dom_distiller/core/dom_distiller_service.cc |
+++ b/components/dom_distiller/core/dom_distiller_service.cc |
@@ -39,11 +39,13 @@ void RunArticleAvailableCallback( |
DomDistillerService::DomDistillerService( |
scoped_ptr<DomDistillerStoreInterface> store, |
scoped_ptr<DistillerFactory> distiller_factory, |
- scoped_ptr<DistillerPageFactory> distiller_page_factory) |
+ scoped_ptr<DistillerPageFactory> distiller_page_factory, |
+ scoped_ptr<ReaderModePrefs> reader_mode_prefs) |
: store_(store.Pass()), |
content_store_(new InMemoryContentStore(kDefaultMaxNumCachedEntries)), |
distiller_factory_(distiller_factory.Pass()), |
- distiller_page_factory_(distiller_page_factory.Pass()) { |
+ distiller_page_factory_(distiller_page_factory.Pass()), |
+ reader_mode_prefs_(reader_mode_prefs.Pass()) { |
} |
DomDistillerService::~DomDistillerService() { |
@@ -239,4 +241,8 @@ void DomDistillerService::RemoveObserver(DomDistillerObserver* observer) { |
store_->RemoveObserver(observer); |
} |
+ReaderModePrefs* DomDistillerService::GetReaderModePrefs() { |
+ return reader_mode_prefs_.get(); |
+} |
+ |
} // namespace dom_distiller |