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

Unified Diff: content/browser/child_process_security_policy_impl.cc

Issue 2403713002: Add suborigin logic to url::Origin (Closed)
Patch Set: Fix unit test Created 4 years, 2 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 d7fd241f5adebd7b7f10cad5bd52e6018fda1be0..f1aa1c74d71df72530020a7be37b54ab32fee7f7 100644
--- a/content/browser/child_process_security_policy_impl.cc
+++ b/content/browser/child_process_security_policy_impl.cc
@@ -344,8 +344,8 @@ ChildProcessSecurityPolicyImpl::ChildProcessSecurityPolicyImpl() {
RegisterPseudoScheme(url::kAboutScheme);
RegisterPseudoScheme(url::kJavaScriptScheme);
RegisterPseudoScheme(kViewSourceScheme);
- RegisterPseudoScheme(kHttpSuboriginScheme);
- RegisterPseudoScheme(kHttpsSuboriginScheme);
+ RegisterPseudoScheme(url::kHttpSuboriginScheme);
+ RegisterPseudoScheme(url::kHttpsSuboriginScheme);
}
ChildProcessSecurityPolicyImpl::~ChildProcessSecurityPolicyImpl() {
@@ -711,8 +711,8 @@ bool ChildProcessSecurityPolicyImpl::CanSetAsOriginHeader(int child_id,
return false; // Can't set invalid URLs as origin headers.
// Suborigin URLs are a special case and are allowed to be an origin header.
- if (url.scheme() == kHttpSuboriginScheme ||
- url.scheme() == kHttpsSuboriginScheme) {
+ if (url.scheme() == url::kHttpSuboriginScheme ||
+ url.scheme() == url::kHttpsSuboriginScheme) {
DCHECK(IsPseudoScheme(url.scheme()));
return true;
}
« no previous file with comments | « chrome/browser/browsing_data/cookies_tree_model.cc ('k') | content/browser/child_process_security_policy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698