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

Unified Diff: components/url_formatter/BUILD.gn

Issue 1428593004: Enable url_formatter::ElideUrl and url_formatter::ElideHost for aura Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: refer to bug Created 5 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 | « no previous file | components/url_formatter/elide_url.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_formatter/BUILD.gn
diff --git a/components/url_formatter/BUILD.gn b/components/url_formatter/BUILD.gn
index 3b777de5fa02551584b4b415a5fc1c234a3d09b6..b74ef78db67a2427d26a282ba21ad67dce314cfd 100644
--- a/components/url_formatter/BUILD.gn
+++ b/components/url_formatter/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/ui.gni")
+
source_set("url_formatter") {
sources = [
"elide_url.cc",
@@ -22,7 +24,7 @@ source_set("url_formatter") {
"//url",
]
- if (!is_android) {
+ if (!is_android || use_aura) {
deps += [ "//ui/gfx" ]
}
}
@@ -40,11 +42,10 @@ source_set("unit_tests") {
"//base",
"//net",
"//testing/gtest",
- "//ui/gfx",
"//url",
]
- if (is_android) {
- deps -= [ "//ui/gfx" ]
+ if (!is_android || use_aura) {
+ deps += [ "//ui/gfx" ]
}
}
« no previous file with comments | « no previous file | components/url_formatter/elide_url.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698