Index: extensions/browser/api/guest_view/app_view/app_view_guest_internal_api.cc |
diff --git a/extensions/browser/api/guest_view/app_view/app_view_guest_internal_api.cc b/extensions/browser/api/guest_view/app_view/app_view_guest_internal_api.cc |
index 55036aea412722fdb5090ff033a83fde609a34fd..0c52ff7cf0450d1f849f362954ab4df97e3d3c1e 100644 |
--- a/extensions/browser/api/guest_view/app_view/app_view_guest_internal_api.cc |
+++ b/extensions/browser/api/guest_view/app_view/app_view_guest_internal_api.cc |
@@ -4,6 +4,8 @@ |
#include "extensions/browser/api/guest_view/app_view/app_view_guest_internal_api.h" |
+#include "content/public/browser/render_frame_host.h" |
+#include "content/public/browser/render_process_host.h" |
#include "extensions/browser/guest_view/app_view/app_view_guest.h" |
#include "extensions/common/api/app_view_guest_internal.h" |
@@ -24,7 +26,8 @@ bool AppViewGuestInternalAttachFrameFunction::RunAsync() { |
EXTENSION_FUNCTION_VALIDATE(url.is_valid()); |
return AppViewGuest::CompletePendingRequest( |
- browser_context(), url, params->guest_instance_id, extension_id()); |
+ browser_context(), url, params->guest_instance_id, extension_id(), |
+ render_frame_host()->GetProcess()->GetID()); |
} |
AppViewGuestInternalDenyRequestFunction:: |
@@ -39,7 +42,8 @@ bool AppViewGuestInternalDenyRequestFunction::RunAsync() { |
// Since the URL passed into AppViewGuest:::CompletePendingRequest is invalid, |
// a new <appview> WebContents will not be created. |
return AppViewGuest::CompletePendingRequest( |
- browser_context(), GURL(), params->guest_instance_id, extension_id()); |
+ browser_context(), GURL(), params->guest_instance_id, extension_id(), |
+ render_frame_host()->GetProcess()->GetID()); |
} |
} // namespace extensions |