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()) | |
| 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 void InternalRuntimeFlags::resetToConsistentState() | |
|
ojan
2016/04/22 20:48:31
This doesn't appear to get called anywhere.
ymalik
2016/04/22 20:57:19
There was a comment in the header template that sa
ymalik
2016/04/26 16:03:21
Spoke to you offline. No need to call resetToConsi
| |
| 22 { | |
| 23 {% for feature in standard_features %} | |
| 24 RuntimeEnabledFeatures::set{{feature.name}}Enabled(m_{{feature.first_lowered _name}}); | |
| 25 {% endfor %} | |
| 26 } | |
| 27 | |
| 28 {% for feature in standard_features %} | |
| 29 void InternalRuntimeFlags::set{{feature.name}}Enabled(bool isEnabled) | |
| 30 { | |
| 31 RuntimeEnabledFeatures::set{{feature.name}}Enabled(isEnabled); | |
| 32 } | |
| 33 {% endfor %} | |
| 34 | |
| 35 {% for feature in standard_features %} | |
| 36 bool InternalRuntimeFlags::{{feature.first_lowered_name}}Enabled() | |
| 37 { | |
| 38 return RuntimeEnabledFeatures::{{feature.first_lowered_name}}Enabled(); | |
| 39 } | |
| 40 {% endfor %} | |
| 41 | |
| 42 } // namespace blink | |
| OLD | NEW |