Index: components/constrained_window/constrained_window_views.cc |
diff --git a/components/constrained_window/constrained_window_views.cc b/components/constrained_window/constrained_window_views.cc |
index d00551385504274b22bd5666e1d1d8496dd99168..8b320dafb277398db50bacae9bd720df42216220 100644 |
--- a/components/constrained_window/constrained_window_views.cc |
+++ b/components/constrained_window/constrained_window_views.cc |
@@ -166,6 +166,13 @@ views::Widget* CreateBrowserModalDialogViews(views::DialogDelegate* dialog, |
: nullptr; |
views::Widget* widget = |
views::DialogDelegate::CreateDialogWidget(dialog, NULL, parent_view); |
+ |
+#if defined(OS_MACOSX) |
+ // On Mac, window modal dialogs are displayed as sheets, so their position is |
+ // managed by the parent window. |
+ return widget; |
tapted
2015/08/21 00:31:52
I know the compiler allows it.. but there's someth
jackhou1
2015/08/21 01:55:58
Replied in https://codereview.chromium.org/1309583
|
+#endif |
+ |
if (!dialog->UseNewStyleForThisDialog()) |
return widget; |
ModalDialogHost* host = constrained_window_views_client-> |