Index: chrome/browser/ui/BUILD.gn |
diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn |
index 9dff41e6e3ae99d91c1f46e2e261c5929f4f7ca8..4b8e8e48ed03790ea37b7b9d27c2c3e640ead470 100644 |
--- a/chrome/browser/ui/BUILD.gn |
+++ b/chrome/browser/ui/BUILD.gn |
@@ -1193,8 +1193,6 @@ split_static_library("ui") { |
"zoom/chrome_zoom_level_prefs.h", |
] |
deps += [ |
- "//apps", |
- "//apps/ui/views", |
"//chrome/app/vector_icons", |
"//chrome/browser/profile_resetter:profile_reset_report_proto", |
"//chrome/common:features", |
@@ -1203,11 +1201,18 @@ split_static_library("ui") { |
"//components/web_modal", |
"//components/zoom", |
"//device/bluetooth", |
- "//extensions/common:mojo", |
"//mash/public/interfaces", |
"//services/device/public/interfaces", |
"//ui/vector_icons", |
] |
+ |
+ if (enable_extensions) { |
+ deps += [ |
+ "//apps", |
+ "//apps/ui/views", |
+ "//extensions/common:mojo", |
+ ] |
+ } |
} |
if (enable_basic_printing || enable_print_preview) { |