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

Unified Diff: third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h

Issue 2640823004: Allow origin trials to be enabled by script (Closed)
Patch Set: Add tracking of installed features Created 3 years, 11 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
Index: third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h
diff --git a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h
index 51f5bf3ead1ee0bbdf0c14be0545592cfcd1e15f..9efd759e56becca733d9c870154973f252e883f7 100644
--- a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h
+++ b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h
@@ -82,11 +82,14 @@ class CORE_EXPORT OriginTrialContext final
DECLARE_VIRTUAL_TRACE();
private:
- void validateToken(const String& token);
+ // Validate the trial token, and return true if valid. If valid, the trial
+ // named in the token is also added to the list of enabled trials.
+ bool validateToken(const String& token);
Member<ExecutionContext> m_host;
Vector<String> m_tokens;
HashSet<String> m_enabledTrials;
+ HashSet<String> m_installedTrials;
WebTrialTokenValidator* m_trialTokenValidator;
};

Powered by Google App Engine
This is Rietveld 408576698