| 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();
|
| }
|
|
|