Chromium Code Reviews| Index: third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp |
| diff --git a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp |
| index a5a268fbb0a580c98c9b4c95175823c4970ca3d3..2822147229d58cbfd111c25bea3c44d573b80ee4 100644 |
| --- a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp |
| +++ b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp |
| @@ -80,7 +80,8 @@ int getTokenValidationResultPriority( |
| // 5. Wrong version for token (not currently supported version number(s)) |
| // 6. Invalid data in token (can be before/after validating signature) |
| // 7. Embedder does not support origin trials |
| - // 8. No tokens provided |
| + // 8. The feature requested is disabled |
|
chasej
2016/06/08 16:14:24
I'd argue that FeatureDisabled has the highest pri
iclelland
2016/06/08 17:43:44
That's not what this priority sequence represents,
|
| + // 9. No tokens provided |
| // NOTE: Lower numbers are higher priority |
| // See this document for details: |
| // https://docs.google.com/document/d/1qVP2CK1lbfmtIJRIm6nwuEFFhGhYbtThLQPo3CSTtmg/edit#bookmark=id.k1j0q938so3b |
| @@ -104,8 +105,10 @@ int getTokenValidationResultPriority( |
| return 6; |
| case WebOriginTrialTokenStatus::NotSupported: |
| return 7; |
| - case WebOriginTrialTokenStatus::NoTokens: |
| + case WebOriginTrialTokenStatus::FeatureDisabled: |
| return 8; |
| + case WebOriginTrialTokenStatus::NoTokens: |
| + return 9; |
| } |
| NOTREACHED(); |