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

Unified Diff: content/browser/frame_host/navigation_request.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/browser/frame_host/navigation_request.cc
diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
index b39ba868e73a97a9a2ddd0e5c15abe4e43577d8b..a2a76805b4aef97cd36d983d42223c4eac0d05fc 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -162,7 +162,7 @@ void AddAdditionalRequestHeaders(net::HttpRequestHeaders* headers,
if (!NeedsHTTPOrigin(headers, method))
return;
- // Create a unique origin.
+ // Create a unique opaque origin.
url::Origin origin;
if (frame_tree_node->IsMainFrame()) {
// For main frame, the origin is the url currently loading.
@@ -170,7 +170,7 @@ void AddAdditionalRequestHeaders(net::HttpRequestHeaders* headers,
} else if ((frame_tree_node->effective_sandbox_flags() &
blink::WebSandboxFlags::Origin) == blink::WebSandboxFlags::None) {
// The origin should be the origin of the root, except for sandboxed
- // frames which have a unique origin.
+ // frames which have a unique opaque origin.
origin = frame_tree_node->frame_tree()->root()->current_origin();
}

Powered by Google App Engine
This is Rietveld 408576698