| Index: ui/views/controls/native/native_view_host_aura.cc
|
| diff --git a/ui/views/controls/native/native_view_host_aura.cc b/ui/views/controls/native/native_view_host_aura.cc
|
| index 81983112835ab9846685eb0c778325b485f03ec1..cfebcb3b7ec7c0ecb0c750301515aabe5eca1a61 100644
|
| --- a/ui/views/controls/native/native_view_host_aura.cc
|
| +++ b/ui/views/controls/native/native_view_host_aura.cc
|
| @@ -35,6 +35,8 @@ void NativeViewHostAura::NativeViewDetaching(bool destroyed) {
|
| if (!destroyed) {
|
| host_->native_view()->RemoveObserver(this);
|
| host_->native_view()->Hide();
|
| + if (host_->native_view()->parent())
|
| + host_->native_view()->parent()->RemoveChild(host_->native_view());
|
| }
|
| }
|
|
|
|
|