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

Unified Diff: components/printing/renderer/print_web_view_helper_linux.cc

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Merge Created 4 years, 1 month 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/printing/renderer/print_web_view_helper_linux.cc
diff --git a/components/printing/renderer/print_web_view_helper_linux.cc b/components/printing/renderer/print_web_view_helper_linux.cc
index 5f6cdd540dc57d6d7e3be9dec037d4742f1ffe8e..498432cedbfab4604cf2b55e0ad9487e0343df9b 100644
--- a/components/printing/renderer/print_web_view_helper_linux.cc
+++ b/components/printing/renderer/print_web_view_helper_linux.cc
@@ -9,6 +9,7 @@
#include "base/logging.h"
#include "build/build_config.h"
#include "components/printing/common/print_messages.h"
+#include "printing/features/features.h"
#include "printing/metafile_skia_wrapper.h"
#if defined(OS_ANDROID)
@@ -42,7 +43,7 @@ bool SaveToFD(const printing::Metafile& metafile,
namespace printing {
-#if defined(ENABLE_BASIC_PRINTING)
+#if BUILDFLAG(ENABLE_BASIC_PRINTING)
bool PrintWebViewHelper::PrintPagesNative(blink::WebLocalFrame* frame,
int page_count) {
PdfMetafileSkia metafile(PDF_SKIA_DOCUMENT_TYPE);
@@ -100,6 +101,6 @@ bool PrintWebViewHelper::PrintPagesNative(blink::WebLocalFrame* frame,
return true;
#endif // defined(OS_ANDROID)
}
-#endif // defined(ENABLE_BASIC_PRINTING)
+#endif // BUILDFLAG(ENABLE_BASIC_PRINTING)
} // namespace printing
« no previous file with comments | « components/printing/renderer/print_web_view_helper.cc ('k') | components/printing/renderer/print_web_view_helper_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698