Index: components/guest_view/renderer/guest_view_container.cc |
diff --git a/components/guest_view/renderer/guest_view_container.cc b/components/guest_view/renderer/guest_view_container.cc |
index c410c6f67789f17787657c550e173a06c8b64de4..a9cc9a9ac6e70231124501770e93474383856096 100644 |
--- a/components/guest_view/renderer/guest_view_container.cc |
+++ b/components/guest_view/renderer/guest_view_container.cc |
@@ -100,13 +100,12 @@ void GuestViewContainer::Destroy(bool embedder_frame_destroyed) { |
g_guest_view_container_map.Get().erase(element_instance_id()); |
if (pending_response_.get()) |
- pending_response_->ExecuteCallbackIfAvailable(0 /* argc */, nullptr); |
+ pending_response_->HandleDefaultResponse(); |
while (pending_requests_.size() > 0) { |
linked_ptr<GuestViewRequest> pending_request = pending_requests_.front(); |
pending_requests_.pop_front(); |
- // Call the JavaScript callbacks with no arguments which implies an error. |
- pending_request->ExecuteCallbackIfAvailable(0 /* argc */, nullptr); |
+ pending_request->HandleDefaultResponse(); |
} |
delete this; |