Index: ui/views/controls/webview/webview.cc |
diff --git a/ui/views/controls/webview/webview.cc b/ui/views/controls/webview/webview.cc |
index 4669c3ede4ac7a7827438711ee68e7c71d9de163..baa5e0e4cb1ff0f066768171fae835a5413cbe3e 100644 |
--- a/ui/views/controls/webview/webview.cc |
+++ b/ui/views/controls/webview/webview.cc |
@@ -254,21 +254,9 @@ void WebView::DetachWebContents() { |
if (web_contents()) { |
wcv_holder_->Detach(); |
#if defined(OS_WIN) |
- if (!is_embedding_fullscreen_widget_) { |
-#if !defined(USE_AURA) |
- // TODO(beng): This should either not be necessary, or be done implicitly |
- // by NativeViewHostWin on Detach(). As it stands, this is needed so that |
- // the of the detached contents knows to tell the renderer it's been |
- // hidden. |
- // |
- // Moving this out of here would also mean we wouldn't be potentially |
- // calling member functions on a half-destroyed WebContents. |
- ShowWindow(web_contents()->GetView()->GetNativeView(), SW_HIDE); |
-#else |
+ if (!is_embedding_fullscreen_widget_) |
web_contents()->SetParentNativeViewAccessible(NULL); |
#endif |
- } |
-#endif |
} |
} |