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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 2710023008: Delete RenderWidgetHostViewChildFrame on Destroy(). (Closed)
Patch Set: fix guest Created 3 years, 10 months 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
« no previous file with comments | « no previous file | content/browser/frame_host/render_widget_host_view_guest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index edf97a0461e1c38a84a073d88a32408052efd9b5..536993bb8b450783c33ed69077341382d5cb0f81 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -295,7 +295,8 @@ void RenderWidgetHostViewChildFrame::Destroy() {
host_->SetView(nullptr);
host_ = nullptr;
- base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
+
+ delete this;
}
void RenderWidgetHostViewChildFrame::SetTooltipText(
« no previous file with comments | « no previous file | content/browser/frame_host/render_widget_host_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698