Index: content/browser/permissions/permission_service_impl.cc |
diff --git a/content/browser/permissions/permission_service_impl.cc b/content/browser/permissions/permission_service_impl.cc |
index 4a78ccf8b251564bcee25434f39e87b3aaa304ea..4c63a1d13708fcc6f86cdeb5cd4b0f08716abcfc 100644 |
--- a/content/browser/permissions/permission_service_impl.cc |
+++ b/content/browser/permissions/permission_service_impl.cc |
@@ -131,6 +131,19 @@ void PermissionServiceImpl::RequestPermission( |
request_id)); |
} |
+void PermissionServiceImpl::RequestPermissions( |
+ mojo::Array<PermissionName> permissions, |
+ const mojo::String& origin, |
+ bool user_gesture, |
+ const PermissionsStatusCallback& callback) { |
+ NOTIMPLEMENTED(); |
+ |
+ mojo::Array<PermissionStatus> result(permissions.size()); |
mlamouri (slow - plz ping)
2015/09/04 15:04:13
add:
TODO(lalitm,mlamouri): this is returning the
Lalit Maganti
2015/09/04 16:07:28
Done.
|
+ for (size_t i = 0; i < permissions.size(); ++i) |
+ result[i] = GetPermissionStatusFromName(permissions[i], GURL(origin)); |
+ callback.Run(result.Pass()); |
+} |
+ |
void PermissionServiceImpl::OnRequestPermissionResponse( |
int request_id, |
PermissionStatus status) { |