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

Unified Diff: third_party/WebKit/public/platform/WebSecurityOrigin.h

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: third_party/WebKit/public/platform/WebSecurityOrigin.h
diff --git a/third_party/WebKit/public/platform/WebSecurityOrigin.h b/third_party/WebKit/public/platform/WebSecurityOrigin.h
index be7bd5b793f4bd2e604d05691abcb2cff019138d..6701d9089a3e04ec844e614f538dc0300a310e62 100644
--- a/third_party/WebKit/public/platform/WebSecurityOrigin.h
+++ b/third_party/WebKit/public/platform/WebSecurityOrigin.h
@@ -78,7 +78,8 @@ class WebSecurityOrigin {
BLINK_PLATFORM_EXPORT WebString suborigin() const;
- // A unique WebSecurityOrigin is the least privileged WebSecurityOrigin.
+ // An opaque WebSecurityOrigin is the least privileged WebSecurityOrigin.
+ // TODO: Rename to IsOpaque
BLINK_PLATFORM_EXPORT bool isUnique() const;
// Returns true if this WebSecurityOrigin can script objects in the given
@@ -128,7 +129,7 @@ class WebSecurityOrigin {
}
WebSecurityOrigin(const url::Origin& origin) : m_private(0) {
- if (origin.unique()) {
+ if (origin.opaque()) {
assign(WebSecurityOrigin::createUnique());
return;
}

Powered by Google App Engine
This is Rietveld 408576698