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

Unified Diff: content/common/origin_trials/trial_token.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/common/origin_trials/trial_token.cc
diff --git a/content/common/origin_trials/trial_token.cc b/content/common/origin_trials/trial_token.cc
index ab9debf19a35af54f0c80ede7fd9cc18789ab63a..7dd9ac80f2720020d4f88fa563810630f0d50869 100644
--- a/content/common/origin_trials/trial_token.cc
+++ b/content/common/origin_trials/trial_token.cc
@@ -150,9 +150,9 @@ std::unique_ptr<TrialToken> TrialToken::Parse(
datadict->GetString("feature", &feature_name);
datadict->GetInteger("expiry", &expiry_timestamp);
- // Ensure that the origin is a valid (non-unique) origin URL.
+ // Ensure that the origin is a valid (non-opaque) origin URL.
url::Origin origin = url::Origin(GURL(origin_string));
- if (origin.unique()) {
+ if (origin.opaque()) {
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698