| Index: components/dom_distiller/core/viewer.cc
|
| diff --git a/components/dom_distiller/core/viewer.cc b/components/dom_distiller/core/viewer.cc
|
| index e3c77962dce2a522e0c6ae5ccf016f09629151eb..a65e6c60fcf58449589f28e031f6bf49f57c6824 100644
|
| --- a/components/dom_distiller/core/viewer.cc
|
| +++ b/components/dom_distiller/core/viewer.cc
|
| @@ -13,6 +13,7 @@
|
| #include "components/dom_distiller/core/dom_distiller_service.h"
|
| #include "components/dom_distiller/core/proto/distilled_article.pb.h"
|
| #include "components/dom_distiller/core/proto/distilled_page.pb.h"
|
| +#include "components/dom_distiller/core/reader_mode_preferences.h"
|
| #include "components/dom_distiller/core/task_tracker.h"
|
| #include "components/dom_distiller/core/url_constants.h"
|
| #include "components/dom_distiller/core/url_utils.h"
|
| @@ -127,10 +128,8 @@ const std::string GetErrorPageHtml() {
|
| return ReplaceHtmlTemplateValues(title, content, "hidden", "");
|
| }
|
|
|
| -const std::string GetCss() {
|
| - return ResourceBundle::GetSharedInstance()
|
| - .GetRawDataResource(IDR_DISTILLER_CSS)
|
| - .as_string();
|
| +const std::string GetCss(ReaderModePrefs* reader_mode_prefs) {
|
| + return reader_mode_prefs->ReplaceCSSTemplateValues();
|
| }
|
|
|
| const std::string GetJavaScript() {
|
|
|