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

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

Issue 1680873002: [Experimental Framework] Move trial token code to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add boringssl dependency to content/renderer/ Created 4 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
« no previous file with comments | « content/child/origin_trials/trial_token_validator.h ('k') | content/common/origin_trials/trial_token.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/origin_trials/trial_token_validator.cc
diff --git a/content/child/origin_trials/trial_token_validator.cc b/content/child/origin_trials/trial_token_validator.cc
deleted file mode 100644
index b1015c54a692b362889bc6d3352f605b3b1e26c3..0000000000000000000000000000000000000000
--- a/content/child/origin_trials/trial_token_validator.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/child/origin_trials/trial_token_validator.h"
-
-#include "base/time/time.h"
-#include "content/common/origin_trials/trial_token.h"
-
-namespace content {
-
-TrialTokenValidator::TrialTokenValidator() {}
-TrialTokenValidator::~TrialTokenValidator() {}
-
-bool TrialTokenValidator::validateToken(const blink::WebString& token,
- const blink::WebString& origin,
- const blink::WebString& featureName) {
- scoped_ptr<TrialToken> trialToken = TrialToken::Parse(token.utf8());
- return trialToken &&
- trialToken->IsAppropriate(origin.utf8(), featureName.utf8()) &&
- trialToken->IsValid(base::Time::Now());
-}
-
-} // namespace content
« no previous file with comments | « content/child/origin_trials/trial_token_validator.h ('k') | content/common/origin_trials/trial_token.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698