Commit 99e5d501 authored by Adam Rice's avatar Adam Rice Committed by Commit Bot

Remove unused method CanAccessDataForWebSocket

ChildProcessSecurityPolicyImpl::CanAccessDataForWebSocket is no longer
used. Remove it.

Change-Id: I5fdd3577c5280aaf29b3b836c005e956f7a6188e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1828768Reviewed-by: default avatarMike West <mkwst@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#701018}
parent a2612567
......@@ -1198,14 +1198,6 @@ bool ChildProcessSecurityPolicyImpl::CanDeleteFileSystemFile(
DELETE_FILE_GRANT);
}
bool ChildProcessSecurityPolicyImpl::CanAccessDataForWebSocket(
int child_id,
const GURL& url) {
DCHECK(url.SchemeIsWSOrWSS());
GURL url_to_check = net::ChangeWebSocketSchemeToHttpScheme(url);
return CanAccessDataForOrigin(child_id, url_to_check);
}
bool ChildProcessSecurityPolicyImpl::HasWebUIBindings(int child_id) {
base::AutoLock lock(lock_);
......
......@@ -234,10 +234,6 @@ class CONTENT_EXPORT ChildProcessSecurityPolicyImpl
bool CanDeleteFileSystemFile(int child_id,
const storage::FileSystemURL& filesystem_url);
// True if cookie headers may be exposed to renderer |child_id| for |url| for
// display in DevTools. |url| should be a WebSocket URL.
bool CanAccessDataForWebSocket(int child_id, const GURL& url);
// Returns true if the specified child_id has been granted ReadRawCookies.
bool CanReadRawCookies(int child_id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment