Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(734)

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 1453803002: Separate RenderViewHost from RenderWidgetHost, part 10: shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: all in destroy, plus mac Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 29e5e68ee0dfa15bfb5617239941f12eb815a91e..5a8d4881a7353c2bfcac0ba27e5514d717700347 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -965,7 +965,7 @@ void RenderViewHostImpl::RenderWidgetDidInit() {
PostRenderViewReady();
}
-void RenderViewHostImpl::Shutdown() {
+void RenderViewHostImpl::ShutdownAndDestroy() {
// We can't release the SessionStorageNamespace until our peer
// in the renderer has wound down.
if (GetProcess()->HasConnection()) {
@@ -975,7 +975,8 @@ void RenderViewHostImpl::Shutdown() {
GetRoutingID());
}
- RenderWidgetHostImpl::Shutdown();
+ GetWidget()->ShutdownAndDestroyWidget(false);
+ delete this;
}
void RenderViewHostImpl::RenderWidgetWillBeHidden() {

Powered by Google App Engine
This is Rietveld 408576698