Index: components/web_modal/BUILD.gn |
diff --git a/components/web_modal/BUILD.gn b/components/web_modal/BUILD.gn |
index a06653225d4a59a8b19c501cc194f33121813abc..833a2a5ff787615632d71acd8ed0923962217f7e 100644 |
--- a/components/web_modal/BUILD.gn |
+++ b/components/web_modal/BUILD.gn |
@@ -2,6 +2,8 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
+import("//build/config/ui.gni") |
+ |
assert(!is_android && !is_ios) |
static_library("web_modal") { |
@@ -16,6 +18,9 @@ static_library("web_modal") { |
"web_contents_modal_dialog_manager_delegate.cc", |
"web_contents_modal_dialog_manager_delegate.h", |
] |
+ if (is_mac && !mac_views_browser) { |
+ sources += [ "web_contents_modal_dialog_views.cc" ] |
+ } |
deps = [ |
"//base", |