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

Unified Diff: content/shell/browser/layout_test/layout_test_permission_manager.cc

Issue 2838543003: Fix in LayoutTestPermissionManager::RequestPermissions (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 94c6c4f017ddc8019201e0acd358692b45640f50..9a211cc143527600a662ddd435b88662e5624e63 100644
--- a/content/shell/browser/layout_test/layout_test_permission_manager.cc
+++ b/content/shell/browser/layout_test/layout_test_permission_manager.cc
@@ -88,7 +88,8 @@ int LayoutTestPermissionManager::RequestPermissions(
void(const std::vector<blink::mojom::PermissionStatus>&)>& callback) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- std::vector<blink::mojom::PermissionStatus> result(permissions.size());
+ std::vector<blink::mojom::PermissionStatus> result;
+ result.reserve(permissions.size());
const GURL& embedding_origin =
WebContents::FromRenderFrameHost(render_frame_host)
->GetLastCommittedURL().GetOrigin();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698