Index: chrome/browser/ui/BUILD.gn |
diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn |
index 97d00e08b8ce1d6be50fe101c2ab361a4a58c71e..938acba79d8ee1456d9a9471a3814a8a1ad53191 100644 |
--- a/chrome/browser/ui/BUILD.gn |
+++ b/chrome/browser/ui/BUILD.gn |
@@ -1891,11 +1891,12 @@ split_static_library("ui") { |
deps += [ "//build/linux/libgio" ] |
} |
if (use_aura && !use_ozone && is_desktop_linux) { |
- deps += [ |
- # gtk2 is the only component that can interact with gtk2 in our new |
- # world. |
- "//chrome/browser/ui/libgtk2ui", |
- ] |
+ # These are the only components that can interact with gtk. |
+ if (use_gtk3) { |
+ deps += [ "//chrome/browser/ui/libgtkui:libgtk3ui" ] |
+ } else { |
+ deps += [ "//chrome/browser/ui/libgtkui:libgtk2ui" ] |
+ } |
} |
if (is_win || is_mac || is_desktop_linux) { |
sources += [ |
@@ -2073,6 +2074,7 @@ split_static_library("ui") { |
"webui/theme_source.cc", |
"webui/theme_source.h", |
] |
+ deps += [ "//chrome/browser:theme_properties" ] |
} |
if (enable_print_preview) { |
sources += [ |