Index: chrome/browser/media/router/BUILD.gn |
diff --git a/chrome/browser/media/router/BUILD.gn b/chrome/browser/media/router/BUILD.gn |
index 8e14962577f5426491f211829e3e81540866154d..3c42873c1070fa54206515da8909d8ca62f41a3d 100644 |
--- a/chrome/browser/media/router/BUILD.gn |
+++ b/chrome/browser/media/router/BUILD.gn |
@@ -3,6 +3,7 @@ |
# found in the LICENSE file. |
# |
+import("//build/config/features.gni") |
import("//mojo/public/tools/bindings/mojom.gni") |
import("//testing/test.gni") |
@@ -26,9 +27,11 @@ static_library("router") { |
if (!is_android) { |
deps += [ |
":mojo_bindings", |
- "//extensions/browser", |
"//mojo/public/cpp/bindings", |
] |
+ if (enable_extensions) { |
+ deps += [ "//extensions/browser" ] |
+ } |
sources += rebase_path(gypi_values.media_router_non_android_sources, |
".", |
"//chrome/browser/media/router") |
@@ -52,10 +55,10 @@ source_set("test_support") { |
".", |
"//chrome/browser/media/router") |
if (!is_android) { |
- deps += [ |
- ":mojo_bindings", |
- "//extensions/common", |
- ] |
+ deps += [ ":mojo_bindings" ] |
+ if (enable_extensions) { |
+ deps += [ "//extensions/common" ] |
+ } |
sources += |
rebase_path(gypi_values.media_router_non_android_test_support_sources, |
".", |