Chromium Code Reviews| 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 8499a3fb90eacbf98302a97c1f3b1423dc2b3f24..16ba61e76ccfcd5b6c6e5cfafa01b79fb1054ded 100644 |
| --- a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h |
| +++ b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h |
| @@ -70,6 +70,13 @@ public: |
| // to provide a message for features that are not enabled. |
| bool isFeatureEnabled(const String& featureName, String* errorMessage); |
| + // Installs JavaScript bindings for any features which should be enabled by |
| + // the current set of trial tokens. This method is idempotent; only features |
| + // which have been enabled since the last time it was run will be installed. |
| + // If the V8 context for the host execution context has not been |
| + // initialized, then this method will return without doing anything. |
| + void initializePendingTrials(); |
|
chasej
2016/05/31 15:42:13
Nit: maybe this should be named "initializePending
iclelland
2016/05/31 16:03:44
Done.
|
| + |
| void setFeatureBindingsInstalled(const String& featureName); |
| bool featureBindingsInstalled(const String& featureName); |