Index: content/shell/browser/layout_test/layout_test_permission_manager.cc |
diff --git a/content/shell/browser/layout_test/layout_test_permission_manager.cc b/content/shell/browser/layout_test/layout_test_permission_manager.cc |
index 9791db46b02cdce72cc6c00a1f7aa8648bdad5c2..bdd8ba7618d6b6ca56bb5f9f9c75389473c873e4 100644 |
--- a/content/shell/browser/layout_test/layout_test_permission_manager.cc |
+++ b/content/shell/browser/layout_test/layout_test_permission_manager.cc |
@@ -76,6 +76,28 @@ int LayoutTestPermissionManager::RequestPermission( |
return kNoPendingOperation; |
} |
+int LayoutTestPermissionManager::RequestPermissions( |
+ const std::vector<PermissionType>& permissions, |
+ content::RenderFrameHost* render_frame_host, |
+ const GURL& requesting_origin, |
+ bool user_gesture, |
+ const base::Callback<void( |
+ const std::vector<PermissionStatus>&)>& callback) { |
+ DCHECK_CURRENTLY_ON(BrowserThread::UI); |
+ |
+ std::vector<PermissionStatus> result(permissions.size()); |
+ const GURL& embedding_origin = |
+ WebContents::FromRenderFrameHost(render_frame_host) |
+ ->GetLastCommittedURL().GetOrigin(); |
+ for (const auto& permission : permissions) { |
+ result.push_back(GetPermissionStatus( |
+ permission, requesting_origin, embedding_origin)); |
+ } |
+ |
+ callback.Run(result); |
+ return kNoPendingOperation; |
+} |
+ |
void LayoutTestPermissionManager::CancelPermissionRequest(int request_id) { |
DCHECK_CURRENTLY_ON(BrowserThread::UI); |
} |