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" ] |
} |
} |