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

Unified Diff: content/renderer/origin_trials/web_trial_token_validator_impl.cc

Issue 2555333006: Deflake origin trial token validator tests (Closed)
Patch Set: Switch WrapUnique to MakeUnique Created 3 years, 4 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 | « content/common/origin_trials/trial_token_validator_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/origin_trials/web_trial_token_validator_impl.cc
diff --git a/content/renderer/origin_trials/web_trial_token_validator_impl.cc b/content/renderer/origin_trials/web_trial_token_validator_impl.cc
index e34dee6cabf87c1a6d9a1fa9796a7e1d1ce67c97..ca9fdf2449cb618982ac7b4f211158d3a44bcd5d 100644
--- a/content/renderer/origin_trials/web_trial_token_validator_impl.cc
+++ b/content/renderer/origin_trials/web_trial_token_validator_impl.cc
@@ -4,6 +4,7 @@
#include "content/renderer/origin_trials/web_trial_token_validator_impl.h"
+#include "base/time/time.h"
#include "content/common/origin_trials/trial_token_validator.h"
#include "third_party/WebKit/public/platform/WebOriginTrialTokenStatus.h"
@@ -17,8 +18,8 @@ blink::WebOriginTrialTokenStatus WebTrialTokenValidatorImpl::ValidateToken(
const blink::WebSecurityOrigin& origin,
blink::WebString* feature_name) {
std::string feature;
- blink::WebOriginTrialTokenStatus status =
- TrialTokenValidator::ValidateToken(token.Utf8(), origin, &feature);
+ blink::WebOriginTrialTokenStatus status = TrialTokenValidator::ValidateToken(
+ token.Utf8(), origin, &feature, base::Time::Now());
if (status == blink::WebOriginTrialTokenStatus::kSuccess)
*feature_name = blink::WebString::FromUTF8(feature);
return status;
« no previous file with comments | « content/common/origin_trials/trial_token_validator_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698