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

Unified Diff: content/browser/child_process_security_policy_impl.cc

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Update new uses post-rebase Created 3 years, 4 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 c285ff22ac52aee6c2a9d12fb2c005c8b2214ac3..26bcee7f38a4b0c42277f0ad08c639ae47b62c17 100644
--- a/content/browser/child_process_security_policy_impl.cc
+++ b/content/browser/child_process_security_policy_impl.cc
@@ -655,7 +655,7 @@ bool ChildProcessSecurityPolicyImpl::CanRequestURL(
return false;
url::Origin origin(url);
- return origin.unique() || IsWebSafeScheme(origin.scheme()) ||
+ return origin.opaque() || IsWebSafeScheme(origin.scheme()) ||
CanCommitURL(child_id, GURL(origin.Serialize()));
}
@@ -714,7 +714,7 @@ bool ChildProcessSecurityPolicyImpl::CanCommitURL(int child_id,
return false;
url::Origin origin(url);
- return origin.unique() || CanCommitURL(child_id, GURL(origin.Serialize()));
+ return origin.opaque() || CanCommitURL(child_id, GURL(origin.Serialize()));
}
{
@@ -1139,7 +1139,7 @@ void ChildProcessSecurityPolicyImpl::AddIsolatedOriginsFromCommandLine(
base::SplitStringPiece(origin_list, ",", base::TRIM_WHITESPACE,
base::SPLIT_WANT_NONEMPTY)) {
url::Origin origin((GURL(origin_piece)));
- if (!origin.unique())
+ if (!origin.opaque())
AddIsolatedOrigin(origin);
}
}
« no previous file with comments | « content/browser/cache_storage/cache_storage_dispatcher_host.cc ('k') | content/browser/frame_host/frame_tree_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698