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

Unified Diff: printing/printing_context_win.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
« no previous file with comments | « printing/printing_context.cc ('k') | skia/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context_win.cc
diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc
index 0b4a89b5c6aea2c5317ed25eea19d9681d6e2596..1a54439484e7c5ebd2335302d01815151cd8e9c0 100644
--- a/printing/printing_context_win.cc
+++ b/printing/printing_context_win.cc
@@ -14,6 +14,7 @@
#include "base/strings/utf_string_conversions.h"
#include "printing/backend/print_backend.h"
#include "printing/backend/win_helper.h"
+#include "printing/features/features.h"
#include "printing/print_settings_initializer_win.h"
#include "printing/printed_document.h"
#include "printing/printing_context_system_dialog_win.h"
@@ -35,7 +36,7 @@ void AssignResult(PrintingContext::Result* out, PrintingContext::Result in) {
// static
std::unique_ptr<PrintingContext> PrintingContext::Create(Delegate* delegate) {
-#if defined(ENABLE_BASIC_PRINTING)
+#if BUILDFLAG(ENABLE_BASIC_PRINTING)
return base::WrapUnique(new PrintingContextSystemDialogWin(delegate));
#else
return base::WrapUnique(new PrintingContextWin(delegate));
« no previous file with comments | « printing/printing_context.cc ('k') | skia/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698