Chromium Code Reviews| Index: ash/mus/bridge/wm_window_mus.cc |
| diff --git a/ash/mus/bridge/wm_window_mus.cc b/ash/mus/bridge/wm_window_mus.cc |
| index d3fc487382eb1c649522c705c776f28c6317c001..d9af4c010562affe12c446ae7816668e2e99e180 100644 |
| --- a/ash/mus/bridge/wm_window_mus.cc |
| +++ b/ash/mus/bridge/wm_window_mus.cc |
| @@ -161,6 +161,7 @@ bool WmWindowMus::IsContainer() const { |
| } |
| void WmWindowMus::Destroy() { |
| + // TODO(sky): to match aura behavior this should delete children. |
|
James Cook
2016/09/21 22:03:19
Are we going to leak windows at shutdown until thi
sky
2016/09/21 22:47:49
Indeed. Added pointer to bug.
|
| window_->Destroy(); |
| // WARNING: this has been deleted. |
| } |
| @@ -444,6 +445,10 @@ void WmWindowMus::AddChild(WmWindow* window) { |
| window_->AddChild(GetMusWindow(window)); |
| } |
| +void WmWindowMus::RemoveChild(WmWindow* child) { |
| + window_->RemoveChild(GetMusWindow(child)); |
| +} |
| + |
| const WmWindow* WmWindowMus::GetParent() const { |
| return Get(window_->parent()); |
| } |