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

Unified Diff: chrome/browser/dom_distiller/lazy_dom_distiller_service.cc

Issue 341563002: Theme Preferences for Distilled Pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor changes 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: chrome/browser/dom_distiller/lazy_dom_distiller_service.cc
diff --git a/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc b/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc
index 3e7e74573a3ff01af226eebf8f8085897d7c8efc..b7adb5b62e149cd62e57dfb483d854dc12b8d6bc 100644
--- a/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc
+++ b/chrome/browser/dom_distiller/lazy_dom_distiller_service.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/profiles/profile.h"
#include "components/dom_distiller/core/distiller_page.h"
#include "components/dom_distiller/core/dom_distiller_service.h"
+#include "components/dom_distiller/core/reader_mode_preferences.h"
#include "content/public/browser/notification_source.h"
namespace dom_distiller {
@@ -20,6 +21,8 @@ LazyDomDistillerService::LazyDomDistillerService(
registrar_.Add(this,
chrome::NOTIFICATION_PROFILE_DESTROYED,
content::Source<Profile>(profile));
+ reader_mode_prefs = scoped_ptr<ReaderModePrefs>(
robliao 2014/06/17 18:01:49 Should be able to do reader_mode_prefs.reset(new .
smaslo 2014/06/17 22:44:07 Done.
+ new ReaderModePrefs(profile_->GetPrefs()));
}
LazyDomDistillerService::~LazyDomDistillerService() {
@@ -93,4 +96,8 @@ void LazyDomDistillerService::RemoveObserver(DomDistillerObserver* observer) {
instance()->RemoveObserver(observer);
}
+ReaderModePrefs* LazyDomDistillerService::GetReaderModePrefs() {
+ return reader_mode_prefs.get();
+}
+
} // namespace dom_distiller

Powered by Google App Engine
This is Rietveld 408576698