Index: chrome/common/BUILD.gn |
diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn |
index 6fd61117e9a4a049e95fa4ef9036655bf05d7513..6402ed62a00d132171421743435d71c88c22f1fa 100644 |
--- a/chrome/common/BUILD.gn |
+++ b/chrome/common/BUILD.gn |
@@ -59,7 +59,6 @@ static_library("common") { |
"//components/json_schema", |
"//components/metrics", |
"//components/policy:policy_component_common", |
- "//components/printing/common:printing_common", |
"//components/translate/core/common", |
"//components/variations", |
"//content/public/common", |
@@ -136,13 +135,11 @@ static_library("common") { |
} |
# Printing. |
- if (!enable_basic_printing && !enable_print_preview) { |
- sources -= [ |
- "print_messages.cc", |
- "print_messages.h", |
+ if (enable_basic_printing || enable_print_preview) { |
+ deps += [ |
+ "//components/printing/common:printing_common", |
+ "//printing", |
] |
- } else { |
- deps += [ "//printing" ] |
if (enable_print_preview) { |
# Full printing support. |
sources += rebase_path(gypi_values.chrome_common_service_process_sources, |