Index: content/renderer/BUILD.gn |
diff --git a/content/renderer/BUILD.gn b/content/renderer/BUILD.gn |
index 329cac7ac6768805dbf5f4df4a60c9891caaf1d8..6ce451bc717c604a83e5cae08272bfe4345629de 100644 |
--- a/content/renderer/BUILD.gn |
+++ b/content/renderer/BUILD.gn |
@@ -101,23 +101,21 @@ source_set("renderer") { |
allow_circular_includes_from += [ "//content/renderer/mus" ] |
} |
- if (is_mac) { |
- sources -= [ |
- "webscrollbarbehavior_impl_gtkoraura.cc", |
- "webscrollbarbehavior_impl_gtkoraura.h", |
- ] |
+ if (use_external_popup_menu) { |
sources += [ |
"external_popup_menu.cc", |
"external_popup_menu.h", |
] |
} |
- if (is_android) { |
- sources += [ |
- "external_popup_menu.cc", |
- "external_popup_menu.h", |
+ if (is_mac) { |
+ sources -= [ |
+ "webscrollbarbehavior_impl_gtkoraura.cc", |
+ "webscrollbarbehavior_impl_gtkoraura.h", |
] |
+ } |
+ if (is_android) { |
# Add back the Linux file which Android shares. |
set_sources_assignment_filter([]) |
sources += [ "render_view_linux.cc" ] |