Index: ui/views/cocoa/bridged_native_widget_unittest.mm |
diff --git a/ui/views/cocoa/bridged_native_widget_unittest.mm b/ui/views/cocoa/bridged_native_widget_unittest.mm |
index 0ca3ec10dd4f3df7c4c5dd943ec65b87e514ba39..ffbd425461c601033b119c126615f98a56aadb63 100644 |
--- a/ui/views/cocoa/bridged_native_widget_unittest.mm |
+++ b/ui/views/cocoa/bridged_native_widget_unittest.mm |
@@ -112,6 +112,10 @@ class BridgedNativeWidgetTestBase : public ui::CocoaTest { |
init_params_.native_widget = native_widget_mac_; |
+ // Use a frameless window, otherwise Widget will try to center the window |
+ // before the tests covering the Init() flow are ready to do that. |
+ init_params_.type = Widget::InitParams::TYPE_WINDOW_FRAMELESS; |
+ |
// To control the lifetime without an actual window that must be closed, |
// tests in this file need to use WIDGET_OWNS_NATIVE_WIDGET. |
init_params_.ownership = Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET; |