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

Unified Diff: content/common/origin_trials/trial_token.h

Issue 2123323004: Simplify OriginTrialContext and the way it validates tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark enum as obsolete Created 4 years, 5 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
« no previous file with comments | « no previous file | content/common/origin_trials/trial_token.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/origin_trials/trial_token.h
diff --git a/content/common/origin_trials/trial_token.h b/content/common/origin_trials/trial_token.h
index f563a6378a42cb7e7c7aa93710c503aa3dfea47a..ca040c27421fa945989e9740834d250d14ea32c3 100644
--- a/content/common/origin_trials/trial_token.h
+++ b/content/common/origin_trials/trial_token.h
@@ -50,12 +50,10 @@ class CONTENT_EXPORT TrialToken {
blink::WebOriginTrialTokenStatus* out_status);
// Returns success if this token is appropriate for use by the given origin
- // and feature name, and has not yet expired. Otherwise, the return value
- // indicates why the token is not valid.
- blink::WebOriginTrialTokenStatus IsValidForFeature(
- const url::Origin& origin,
- base::StringPiece feature_name,
- const base::Time& now) const;
+ // and has not yet expired. Otherwise, the return value indicates why the
+ // token is not valid.
+ blink::WebOriginTrialTokenStatus IsValid(const url::Origin& origin,
+ const base::Time& now) const;
url::Origin origin() { return origin_; }
std::string feature_name() { return feature_name_; }
« no previous file with comments | « no previous file | content/common/origin_trials/trial_token.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698