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

Unified Diff: chrome/renderer/content_settings_observer.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: chrome/renderer/content_settings_observer.cc
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc
index 1f540add83c2e5d17c7176d24357a4df3425a48f..900f2e1f0be751dc2defc42ecc845f2fa8154b48 100644
--- a/chrome/renderer/content_settings_observer.cc
+++ b/chrome/renderer/content_settings_observer.cc
@@ -48,12 +48,12 @@ namespace {
GURL GetOriginOrURL(const WebFrame* frame) {
url::Origin top_origin = url::Origin(frame->top()->getSecurityOrigin());
- // The |top_origin| is unique ("null") e.g., for file:// URLs. Use the
+ // The |top_origin| is opaque ("null") e.g., for file:// URLs. Use the
// document URL as the primary URL in those cases.
// TODO(alexmos): This is broken for --site-per-process, since top() can be a
// WebRemoteFrame which does not have a document(), and the WebRemoteFrame's
// URL is not replicated. See https://crbug.com/628759.
- if (top_origin.unique() && frame->top()->isWebLocalFrame())
+ if (top_origin.opaque() && frame->top()->isWebLocalFrame())
return frame->top()->document().url();
return top_origin.GetURL();
}

Powered by Google App Engine
This is Rietveld 408576698