Index: content/shell/browser/shell_permission_manager.cc |
diff --git a/content/shell/browser/shell_permission_manager.cc b/content/shell/browser/shell_permission_manager.cc |
index e8e3e71fc72247e3fbebfc35cf9f9e4949dd0c65..fb537b027b828c08dbaed6c7a00d346d58914de9 100644 |
--- a/content/shell/browser/shell_permission_manager.cc |
+++ b/content/shell/browser/shell_permission_manager.cc |
@@ -30,6 +30,22 @@ int ShellPermissionManager::RequestPermission( |
return kNoPendingOperation; |
} |
+int ShellPermissionManager::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) { |
+ std::vector<PermissionStatus> result(permissions.size()); |
+ for (const auto& permission : permissions) { |
+ result.push_back(permission == PermissionType::GEOLOCATION |
+ ? PERMISSION_STATUS_GRANTED : PERMISSION_STATUS_DENIED); |
+ } |
+ callback.Run(result); |
+ return kNoPendingOperation; |
+} |
+ |
void ShellPermissionManager::CancelPermissionRequest(int request_id) { |
} |