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

Unified Diff: url/origin.cc

Issue 1723753002: Make Document::isSecureContext() work for OOPIFs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layout test tweaks, remove unnecessarily #include Created 4 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
« url/origin.h ('K') | « url/origin.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/origin.cc
diff --git a/url/origin.cc b/url/origin.cc
index 97e24f208d5b2098df01078615a7791503d30fbf..d7bff29fa9847011ed19f3f3a2ac43836b44b038 100644
--- a/url/origin.cc
+++ b/url/origin.cc
@@ -20,7 +20,10 @@ namespace url {
Origin::Origin() : unique_(true) {
alexmos 2016/03/01 23:32:33 Does this one also need to init the new bits?
}
-Origin::Origin(const GURL& url) : unique_(true) {
+Origin::Origin(const GURL& url)
+ : unique_(true),
+ is_unique_origin_potentially_trustworthy_(false),
+ should_unique_origin_bypass_secure_context_check_(false) {
if (!url.is_valid() || (!url.IsStandard() && !url.SchemeIsBlob()))
return;
@@ -40,7 +43,9 @@ Origin::Origin(const GURL& url) : unique_(true) {
}
Origin::Origin(base::StringPiece scheme, base::StringPiece host, uint16_t port)
- : tuple_(scheme, host, port) {
+ : tuple_(scheme, host, port),
+ is_unique_origin_potentially_trustworthy_(false),
+ should_unique_origin_bypass_secure_context_check_(false) {
unique_ = tuple_.IsInvalid();
}
« url/origin.h ('K') | « url/origin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698