diff options
Diffstat (limited to 'chromium/components/dom_distiller/core/viewer.cc')
-rw-r--r-- | chromium/components/dom_distiller/core/viewer.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/components/dom_distiller/core/viewer.cc b/chromium/components/dom_distiller/core/viewer.cc index c6ccd76af19..dda3f4ba8ad 100644 --- a/chromium/components/dom_distiller/core/viewer.cc +++ b/chromium/components/dom_distiller/core/viewer.cc @@ -56,7 +56,7 @@ const char kSansSerifCssClass[] = "sans-serif"; const char kMonospaceCssClass[] = "monospace"; std::string GetPlatformSpecificCss() { -#if defined(OS_ANDROID) || defined(OS_IOS) +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS) return ""; #else // Desktop return ui::ResourceBundle::GetSharedInstance().LoadDataResourceString( @@ -160,7 +160,7 @@ std::string ReplaceHtmlTemplateValues(const mojom::Theme theme, std::ostringstream csp; std::ostringstream css; std::ostringstream svg; -#if defined(OS_IOS) +#if BUILDFLAG(IS_IOS) // On iOS the content is inlined as there is no API to detect those requests // and return the local data once a page is loaded. css << "<style>" << viewer::GetCss() << "</style>"; @@ -185,7 +185,7 @@ std::string ReplaceHtmlTemplateValues(const mojom::Theme theme, #else css << "<link rel=\"stylesheet\" href=\"/" << kViewerCssPath << "\">"; svg << "<img src=\"/" << kViewerLoadingImagePath << "\">"; -#endif // defined(OS_IOS) +#endif // BUILDFLAG(IS_IOS) substitutions.push_back(csp.str()); // $1 substitutions.push_back(css.str()); // $2 @@ -230,7 +230,7 @@ const std::string GetErrorPageJs() { } const std::string GetSetTitleJs(std::string title) { -#if defined(OS_ANDROID) || defined(OS_IOS) +#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_IOS) base::Value suffixValue(""); #else // Desktop std::string suffix( |