Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl

Issue 2620883002: Convert Settings.in, CSSValueKeywords.in, SVGCSSValueKeywords.in to json5 (Closed)
Patch Set: Fix comment indent in data Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl
index 60677760d3ee31c5dcba3633a73d13e341bb2fe6..c21f1b65b4465418fc796c59f930e24e84aea64b 100644
--- a/third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/SettingsMacros.h.tmpl
@@ -22,11 +22,11 @@
// End of SETTINGS_MEMBER_VARIABLES.
#define SETTINGS_INITIALIZER_LIST \
- {% for setting in settings if setting.initial and setting.type != 'bool' %}
+ {% for setting in settings if setting.initial is not none and setting.type != 'bool' %}
, m_{{setting.name}}({{setting.initial}}) \
{% endfor %}
- {% for setting in settings if setting.initial and setting.type == 'bool' %}
- , m_{{setting.name}}({{setting.initial}}) \
+ {% for setting in settings if setting.initial is not none and setting.type == 'bool' %}
+ , m_{{setting.name}}({{setting.initial|cpp_bool}}) \
{% endfor %}
// End of SETTINGS_INITIALIZER_LIST.

Powered by Google App Engine
This is Rietveld 408576698