Index: chrome/renderer/content_settings_observer.cc |
diff --git a/chrome/renderer/content_settings_observer.cc b/chrome/renderer/content_settings_observer.cc |
index 49e8c6e6a35b361cf6827b4fa455f2c661c32a85..17331b1a3f7ce26777cfc6db1fcc9bf54259567a 100644 |
--- a/chrome/renderer/content_settings_observer.cc |
+++ b/chrome/renderer/content_settings_observer.cc |
@@ -47,12 +47,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()->ToWebLocalFrame()->GetDocument().Url(); |
return top_origin.GetURL(); |
} |