Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: components/dom_distiller/core/dom_distiller_service.cc

Issue 341563002: Theme Preferences for Distilled Pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor change to constant name Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698