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

Unified Diff: content/common/content_security_policy/csp_context.cc

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Mac fixes Created 3 years, 10 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/common/content_security_policy/csp_context.cc
diff --git a/content/common/content_security_policy/csp_context.cc b/content/common/content_security_policy/csp_context.cc
index b7edf25b470d1a9e656b37b4c255d3a56e086fcf..db86f6cb8685e47e0b10012fcd969f06cb4e3f5d 100644
--- a/content/common/content_security_policy/csp_context.cc
+++ b/content/common/content_security_policy/csp_context.cc
@@ -26,8 +26,8 @@ bool CSPContext::Allow(const std::vector<ContentSecurityPolicy>& policies,
}
void CSPContext::SetSelf(const url::Origin origin) {
- if (origin.unique()) {
- // TODO(arthursonzogni): Decide what to do with unique origins.
+ if (origin.opaque()) {
+ // TODO(arthursonzogni): Decide what to do with opaque origins.
has_self_ = false;
return;
}

Powered by Google App Engine
This is Rietveld 408576698