| Index: athena/wm/window_list_provider_impl.cc
|
| diff --git a/athena/wm/window_list_provider_impl.cc b/athena/wm/window_list_provider_impl.cc
|
| index 74b0a9bd69b7159166f4b2b5070e5baf7e92831f..cfcb7ebeeca91bf07235dadfb7e6868e057781e4 100644
|
| --- a/athena/wm/window_list_provider_impl.cc
|
| +++ b/athena/wm/window_list_provider_impl.cc
|
| @@ -97,8 +97,7 @@ void WindowListProviderImpl::RecreateWindowList() {
|
| }
|
|
|
| void WindowListProviderImpl::OnWindowAdded(aura::Window* window) {
|
| - DCHECK_EQ(window->parent(), container_);
|
| - if (!IsValidWindow(window))
|
| + if (!IsValidWindow(window) || window->parent() != container_)
|
| return;
|
|
|
| window->SetProperty(kManagedKey, true);
|
|
|