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

Unified Diff: chrome/utility/BUILD.gn

Issue 1994713002: Make the dependency of enable_print_preview and enable_pdf explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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
« build/config/BUILD.gn ('K') | « build/config/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/BUILD.gn
diff --git a/chrome/utility/BUILD.gn b/chrome/utility/BUILD.gn
index 55f36ce06b6789c823ffd30b54cf3a1b411ba521..4af71df6eeaa5cf258f84479b5b7d91377a7881b 100644
--- a/chrome/utility/BUILD.gn
+++ b/chrome/utility/BUILD.gn
@@ -100,11 +100,13 @@ static_library("utility") {
]
}
- if (!enable_print_preview) {
+ if (!enable_print_preview && !is_win) {
Lei Zhang 2016/05/18 21:43:37 Also, "enable_print_preview" used to imply "enable
Lei Zhang 2016/05/18 21:43:37 Would you mind negating this? if (enable_print_pr
Wei Li 2016/05/19 17:13:30 Thanks for the explanation. Done.
Wei Li 2016/05/19 17:13:30 Done.
Wei Li 2016/05/19 17:13:30 Thanks for the explanation. Done.
sources -= [
"printing_handler.cc",
"printing_handler.h",
]
+ } else {
+ deps += [ "//pdf" ]
}
if (safe_browsing_mode == 1) {
@@ -112,10 +114,6 @@ static_library("utility") {
rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..")
deps += [ "//third_party/zlib" ]
}
-
- if (enable_pdf) {
- deps += [ "//pdf" ]
- }
}
if (is_mac) {
« build/config/BUILD.gn ('K') | « build/config/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698