Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 {% from 'macros.tmpl' import license %} | |
| 2 {{license()}} | |
| 3 | |
| 4 #include "config.h" | |
|
jbroman
2015/12/21 15:03:51
warning: config.h will go away soon (https://code.
iclelland
2015/12/21 17:17:24
Acknowledged, thanks - I'll keep an eye on that.
| |
| 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 |