OLD | NEW |
(Empty) | |
| 1 {% from 'macros.tmpl' import license %} |
| 2 {{license()}} |
| 3 |
| 4 #include "config.h" |
| 5 #include "core/experiments/ExperimentalFeatures.h" |
| 6 |
| 7 #include "core/experiments/Experiments.h" |
| 8 #include "platform/RuntimeEnabledFeatures.h" |
| 9 |
| 10 namespace blink { |
| 11 {% for feature in features %} |
| 12 {% if feature.api_name %} |
| 13 |
| 14 // static |
| 15 bool ExperimentalFeatures::{{feature.first_lowered_name}}Enabled(ExecutionContex
t* executionContext, String& errorMessage) { |
| 16 if (RuntimeEnabledFeatures::{{feature.first_lowered_name}}Enabled()) |
| 17 return true; |
| 18 return Experiments::isApiEnabled(executionContext, "{{feature.api_name}}", e
rrorMessage); |
| 19 } |
| 20 {% endif %} |
| 21 {% endfor %} |
| 22 |
| 23 } // namespace blink |
OLD | NEW |