Chromium Code Reviews| 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..f37a2221198e6b82eebfa1cc7c5d98397b98ac63 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,7 @@ void DomDistillerService::RemoveObserver(DomDistillerObserver* observer) { |
| store_->RemoveObserver(observer); |
| } |
| +ReaderModePrefs* DomDistillerService::GetReaderModePrefs() const { |
| + return reader_mode_prefs_.get(); |
| +} |
|
nyquist
2014/06/23 16:03:06
Nit: newline after this.
smaslo
2014/06/23 22:14:33
Done.
|
| } // namespace dom_distiller |