Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 {% from "macros.tmpl" import license %} | |
| 2 {{ license() }} | |
| 3 | |
| 4 #include "InternalRuntimeFlags.h" | |
| 5 | |
| 6 namespace blink { | |
| 7 | |
| 8 InternalRuntimeFlags* InternalRuntimeFlags::create() | |
| 9 { | |
| 10 return new InternalRuntimeFlags; | |
| 11 } | |
| 12 | |
| 13 InternalRuntimeFlags::InternalRuntimeFlags() | |
| 14 : m_{{standard_features[0].first_lowered_name}}(RuntimeEnabledFeatures::{{st andard_features[0].first_lowered_name}}Enabled()) | |
|
wkorman
2016/04/26 19:01:18
Might be better to do this as a straight for-loop
ymalik
2016/04/26 20:17:39
Yeah. We're also doing it that way in the template
| |
| 15 {% for feature in standard_features[1:] %} | |
| 16 , m_{{feature.first_lowered_name}}(RuntimeEnabledFeatures::{{feature.first_l owered_name}}Enabled()) | |
| 17 {% endfor %} | |
| 18 { | |
| 19 } | |
| 20 | |
| 21 {% for feature in standard_features %} | |
| 22 {% if feature.set_from_internals %} | |
| 23 void InternalRuntimeFlags::set{{feature.name}}Enabled(bool isEnabled) | |
| 24 { | |
| 25 RuntimeEnabledFeatures::set{{feature.name}}Enabled(isEnabled); | |
| 26 } | |
| 27 {% endif %} | |
| 28 {% endfor %} | |
| 29 | |
| 30 {% for feature in standard_features %} | |
| 31 bool InternalRuntimeFlags::{{feature.first_lowered_name}}Enabled() | |
| 32 { | |
| 33 return RuntimeEnabledFeatures::{{feature.first_lowered_name}}Enabled(); | |
| 34 } | |
| 35 {% endfor %} | |
| 36 | |
| 37 } // namespace blink | |
| OLD | NEW |