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

Unified Diff: content/common/origin_trials/trial_token_validator.cc

Issue 1741783002: Add disabled origin trial feature list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ef-finch
Patch Set: Rebase Created 4 years, 6 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 | « chrome/common/pref_names.cc ('k') | content/common/origin_trials/trial_token_validator_unittest.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_validator.cc
diff --git a/content/common/origin_trials/trial_token_validator.cc b/content/common/origin_trials/trial_token_validator.cc
index a4b3db42526b072e8826efad19fe698c4db11afa..3f98ad67e72aa9e3cc29ad1b6cecdd5951264230 100644
--- a/content/common/origin_trials/trial_token_validator.cc
+++ b/content/common/origin_trials/trial_token_validator.cc
@@ -22,6 +22,9 @@ blink::WebOriginTrialTokenStatus TrialTokenValidator::ValidateToken(
if (!origin_trial_policy)
return blink::WebOriginTrialTokenStatus::NotSupported;
+ if (origin_trial_policy->IsFeatureDisabled(feature_name))
+ return blink::WebOriginTrialTokenStatus::FeatureDisabled;
+
// TODO(iclelland): Allow for multiple signing keys, and iterate over all
// active keys here. https://crbug.com/543220
base::StringPiece public_key = origin_trial_policy->GetPublicKey();
« no previous file with comments | « chrome/common/pref_names.cc ('k') | content/common/origin_trials/trial_token_validator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698