| Index: ash/mus/window_manager.cc
|
| diff --git a/ash/mus/window_manager.cc b/ash/mus/window_manager.cc
|
| index d65aad95cc2956f4483abc724410dff025e79d4c..77d66e7cda66d438c8778cb2869b1986efee59be 100644
|
| --- a/ash/mus/window_manager.cc
|
| +++ b/ash/mus/window_manager.cc
|
| @@ -400,6 +400,11 @@ bool WindowManager::OnWmSetProperty(
|
| aura::Window* WindowManager::OnWmCreateTopLevelWindow(
|
| ui::mojom::WindowType window_type,
|
| std::map<std::string, std::vector<uint8_t>>* properties) {
|
| + if (window_type == ui::mojom::WindowType::UNKNOWN) {
|
| + LOG(WARNING) << "Request to create top level of unknown type, failing";
|
| + return nullptr;
|
| + }
|
| +
|
| return NewTopLevelWindow(window_type, properties);
|
| }
|
|
|
|
|