| 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 3b36b987e78b29f1ff6a4092e09f454209fde20d..168f1b55afd56462858daa6009c1d165e8d467d6 100644
|
| --- a/ui/views/controls/native/native_view_host_aura.cc
|
| +++ b/ui/views/controls/native/native_view_host_aura.cc
|
| @@ -97,7 +97,7 @@ void NativeViewHostAura::AttachNativeView() {
|
|
|
| void NativeViewHostAura::NativeViewDetaching(bool destroyed) {
|
| clipping_window_delegate_->set_native_view(NULL);
|
| - RemoveClippingWindow();
|
| +
|
| if (!destroyed) {
|
| host_->native_view()->RemoveObserver(this);
|
| host_->native_view()->ClearProperty(views::kHostViewKey);
|
| @@ -106,6 +106,7 @@ void NativeViewHostAura::NativeViewDetaching(bool destroyed) {
|
| if (host_->native_view()->parent())
|
| Widget::ReparentNativeView(host_->native_view(), NULL);
|
| }
|
| + RemoveClippingWindow();
|
| }
|
|
|
| void NativeViewHostAura::AddedToWidget() {
|
|
|