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

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

Issue 1747183002: Check that RWHI isn't deleted manually while owned by a scoped_ptr in RVHI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index baf1cc4c75a4ec24ab4afaa3c1617df86882f133..4a21dd4d70f17761ab47cb2a8f2ce561f148b69b 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1469,8 +1469,10 @@ void RenderWidgetHostImpl::Destroy(bool also_delete) {
if (delegate_)
delegate_->RenderWidgetDeleted(this);
- if (also_delete)
+ if (also_delete) {
+ CHECK(!owner_delegate_);
nasko 2016/03/01 17:13:43 Is the goal of this to help us discover further Ua
gzobqq 2016/03/01 18:30:13 I would guess that if there is a way to fail this
delete this;
+ }
}
void RenderWidgetHostImpl::RendererIsUnresponsive() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698