| Index: ui/views/widget/native_widget_aura.cc
|
| diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
|
| index 419ed47c64eaea7f042b8a35bfe1c9e9009bab3d..e493ea209646face0149d26149764d78cddc4bbf 100644
|
| --- a/ui/views/widget/native_widget_aura.cc
|
| +++ b/ui/views/widget/native_widget_aura.cc
|
| @@ -22,6 +22,7 @@
|
| #include "ui/aura/client/screen_position_client.h"
|
| #include "ui/aura/client/window_parenting_client.h"
|
| #include "ui/aura/env.h"
|
| +#include "ui/aura/mus/property_utils.h"
|
| #include "ui/aura/window.h"
|
| #include "ui/aura/window_event_dispatcher.h"
|
| #include "ui/aura/window_observer.h"
|
| @@ -141,7 +142,9 @@ void NativeWidgetAura::InitNativeWidget(const Widget::InitParams& params) {
|
| ownership_ = params.ownership;
|
|
|
| RegisterNativeWidgetForWindow(this, window_);
|
| - window_->SetType(GetAuraWindowTypeForWidgetType(params.type));
|
| + // MusClient has assertions that ui::mojom::WindowType matches
|
| + // views::Widget::InitParams::Type.
|
| + aura::SetWindowType(window_, static_cast<ui::mojom::WindowType>(params.type));
|
| window_->SetProperty(aura::client::kShowStateKey, params.show_state);
|
| if (params.type == Widget::InitParams::TYPE_BUBBLE)
|
| aura::client::SetHideOnDeactivate(window_, true);
|
|
|