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

Unified Diff: components/guest_view/renderer/guest_view_container.cc

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 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
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;

Powered by Google App Engine
This is Rietveld 408576698