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

Unified Diff: content/browser/child_process_security_policy_impl.cc

Issue 1868763002: Remove URLRequest::IsHandledProtocol and IsHandledURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: finish removing URLRequest::IsHandledProtocol() Created 4 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
Index: content/browser/child_process_security_policy_impl.cc
diff --git a/content/browser/child_process_security_policy_impl.cc b/content/browser/child_process_security_policy_impl.cc
index 34bad5ad0e55ab8d4a4ce2b2b788f511271de1e8..be856ed42fa4c26bc994b7197230d48c8bf58ec1 100644
--- a/content/browser/child_process_security_policy_impl.cc
+++ b/content/browser/child_process_security_policy_impl.cc
@@ -612,8 +612,7 @@ bool ChildProcessSecurityPolicyImpl::CanRequestURL(
return true;
// Also allow URLs destined for ShellExecute and not the browser itself.
- return !GetContentClient()->browser()->IsHandledURL(url) &&
- !net::URLRequest::IsHandledURL(url);
+ return !GetContentClient()->browser()->IsHandledURL(url);
Charlie Reis 2016/04/28 21:45:35 This seems like it depends on the content/ embedde
mgersh 2016/04/28 22:30:13 Can you point me to an explanation of what the sec
Charlie Reis 2016/04/29 00:14:44 For reference, CanRequestURL is used in ResourceDi
mmenke 2016/04/29 00:27:24 If we're on the IOTHread, we could call url_reques
mmenke 2016/04/29 00:32:15 Should also note that doesn't work for all consume
}
bool ChildProcessSecurityPolicyImpl::CanCommitURL(int child_id,

Powered by Google App Engine
This is Rietveld 408576698