diff options
-rw-r--r-- | extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc index d704b9f..27297f3 100644 --- a/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc +++ b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc @@ -227,18 +227,12 @@ bool MimeHandlerViewGuest::SaveFrame(const GURL& url, } void MimeHandlerViewGuest::DocumentOnLoadCompletedInMainFrame() { - // Assume the embedder WebContents is valid here. Change this to a DCHECK - // after verifying https://crbug.com/569990. - CHECK(owner_web_contents()); - - // Although we should always be attached before loading is complete, the - // MimeHandlerViewGuest may become detached in some cases so we still need - // to check whether we're attached here. - if (attached()) { - embedder_web_contents()->Send( - new ExtensionsGuestViewMsg_MimeHandlerViewGuestOnLoadCompleted( - element_instance_id())); - } + // Assume the embedder WebContents is valid here. + DCHECK(embedder_web_contents()); + + embedder_web_contents()->Send( + new ExtensionsGuestViewMsg_MimeHandlerViewGuestOnLoadCompleted( + element_instance_id())); } base::WeakPtr<StreamContainer> MimeHandlerViewGuest::GetStream() const { |