| Index: mash/wm/window_manager.cc
|
| diff --git a/mash/wm/window_manager.cc b/mash/wm/window_manager.cc
|
| index 4ebeb9a81eb34f5bb25774cd61d0e545636bcfec..5bcd15e1a7424491c0ec6a58249005a16e2bc1f9 100644
|
| --- a/mash/wm/window_manager.cc
|
| +++ b/mash/wm/window_manager.cc
|
| @@ -113,9 +113,8 @@ mus::Window* WindowManager::NewTopLevelWindow(
|
| root_controller_->GetWindowForContainer(container)->AddChild(window);
|
|
|
| if (provide_non_client_frame) {
|
| - // NonClientFrameController deletes itself when |window| is destroyed.
|
| - new NonClientFrameController(root_controller_->GetConnector(), window,
|
| - root_controller_->window_manager_client());
|
| + NonClientFrameController::Create(root_controller_->GetConnector(), window,
|
| + root_controller_->window_manager_client());
|
| }
|
|
|
| root_controller_->IncrementWindowCount();
|
|
|