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

Unified Diff: components/guest_view/browser/guest_view_base.cc

Issue 2300663002: Fix for crash in GuestViewBase::FindReply. (Closed)
Patch Set: Created 4 years, 4 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/web_contents/web_contents_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/guest_view/browser/guest_view_base.cc
diff --git a/components/guest_view/browser/guest_view_base.cc b/components/guest_view/browser/guest_view_base.cc
index c878c6ecb8525609276cc7c539a626016738674f..7a22151cb3db6b7135d9dfceb77b38af7866b1c7 100644
--- a/components/guest_view/browser/guest_view_base.cc
+++ b/components/guest_view/browser/guest_view_base.cc
@@ -478,6 +478,8 @@ void GuestViewBase::Destroy() {
StopTrackingEmbedderZoomLevel();
owner_web_contents_ = nullptr;
+ element_instance_id_ = kInstanceIDNone;
+
DCHECK(web_contents());
// Give the derived class an opportunity to perform some cleanup.
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698