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

Unified Diff: content/shell/browser/shell_permission_manager.cc

Issue 2898653004: Implement PermissionServiceImpl::RequestPermission in terms of RequestPermissions (Closed)
Patch Set: Implement PermissionServiceImpl::RequestPermission in terms of RequestPermissions Created 3 years, 7 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
« no previous file with comments | « content/browser/permissions/permission_service_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5311d5dbeda9d131ccd24af8f9a9d94da6b975b4..aed1bd334b777ffb7dc2f81fa13780178ff31bfe 100644
--- a/content/shell/browser/shell_permission_manager.cc
+++ b/content/shell/browser/shell_permission_manager.cc
@@ -47,7 +47,7 @@ int ShellPermissionManager::RequestPermissions(
bool user_gesture,
const base::Callback<
void(const std::vector<blink::mojom::PermissionStatus>&)>& callback) {
- std::vector<blink::mojom::PermissionStatus> result(permissions.size());
+ std::vector<blink::mojom::PermissionStatus> result;
for (const auto& permission : permissions) {
result.push_back(IsWhitelistedPermissionType(permission)
? blink::mojom::PermissionStatus::GRANTED
« no previous file with comments | « content/browser/permissions/permission_service_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698