Index: chrome/browser/permissions/permission_request_id.cc |
diff --git a/chrome/browser/permissions/permission_request_id.cc b/chrome/browser/permissions/permission_request_id.cc |
index 9a994859050b75bd2c9cba9a63f6c78dec421f4f..e3668ae91160c3ab2162580c866eaa2746c4dbdb 100644 |
--- a/chrome/browser/permissions/permission_request_id.cc |
+++ b/chrome/browser/permissions/permission_request_id.cc |
@@ -5,6 +5,16 @@ |
#include "chrome/browser/permissions/permission_request_id.h" |
#include "base/strings/stringprintf.h" |
+#include "content/public/browser/render_frame_host.h" |
+#include "content/public/browser/render_process_host.h" |
+ |
+PermissionRequestID::PermissionRequestID( |
+ content::RenderFrameHost* render_frame_host, |
+ int request_id) |
+ : render_process_id_(render_frame_host->GetProcess()->GetID()), |
+ render_frame_id_(render_frame_host->GetRoutingID()), |
+ request_id_(request_id) { |
+} |
PermissionRequestID::PermissionRequestID(int render_process_id, |
int render_frame_id, |