Index: chrome/renderer/BUILD.gn |
diff --git a/chrome/renderer/BUILD.gn b/chrome/renderer/BUILD.gn |
index 0c568b8936b234e4f60c5e4bba0dcb0c7b6488cb..2f4190315c3e53e413517e4cef29d45d935c7f2c 100644 |
--- a/chrome/renderer/BUILD.gn |
+++ b/chrome/renderer/BUILD.gn |
@@ -130,11 +130,11 @@ static_library("renderer") { |
deps += [ "//third_party/hunspell" ] |
} |
- if (printing_mode > 0) { |
+ if (enable_basic_printing || enable_print_preview) { |
deps += [ "//printing" ] |
sources += rebase_path(gypi_values.chrome_renderer_printing_sources, |
".", "..") |
- if (printing_mode == 1) { |
+ if (enable_print_preview) { |
sources += rebase_path(gypi_values.chrome_renderer_full_printing_sources, |
".", "..") |
} |
@@ -181,10 +181,10 @@ source_set("test_support") { |
"//testing/gtest", |
] |
- if (printing_mode == 1) { |
+ if (enable_print_preview) { |
deps += [ "//chrome/service" ] |
} |
- if (printing_mode != 0) { |
+ if (enable_basic_printing || enable_print_preview) { |
sources += [ |
"printing/mock_printer.cc", |
"printing/mock_printer.h", |