Index: chrome/browser/ui/BUILD.gn |
diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn |
index 9ada38d62b9ac14a40d758e11f970863cc529e7b..373c2eb4d213f1ce219213cb5f013c2aed4ed3c9 100644 |
--- a/chrome/browser/ui/BUILD.gn |
+++ b/chrome/browser/ui/BUILD.gn |
@@ -1205,11 +1205,14 @@ split_static_library("ui") { |
"//components/proximity_auth/webui", |
"//components/web_modal", |
"//device/bluetooth", |
- "//extensions/common:mojo", |
"//mash/public/interfaces", |
"//services/device/public/interfaces", |
"//ui/vector_icons", |
] |
+ |
+ if (enable_extensions) { |
+ deps += [ "//extensions/common:mojo" ] |
+ } |
} |
if (enable_basic_printing || enable_print_preview) { |