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

Unified Diff: extensions/browser/api/guest_view/app_view/app_view_guest_internal_api.cc

Issue 1181893003: Kill bad apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed Unnecessary Included File. Created 5 years, 6 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: 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..efee82c3b734366f2ea6eb155d0d9a93a4e5f0c1 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"
lfg 2015/07/06 18:46:21 Do you need to include render_process_host.h here?
EhsanK 2015/07/06 21:09:59 Removed. Thanks.
#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());
}
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());
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698