Index: headless/lib/browser/devtools_api/domain_h.template |
diff --git a/headless/lib/browser/devtools_api/domain_h.template b/headless/lib/browser/devtools_api/domain_h.template |
index 73110412f43c8b9fb51fd324caabf989df3d6afd..50073c08a353a3c07864e93789644828dcd35cde 100644 |
--- a/headless/lib/browser/devtools_api/domain_h.template |
+++ b/headless/lib/browser/devtools_api/domain_h.template |
@@ -18,7 +18,7 @@ |
{# Macro for defining a member function for a given command. #} |
{% macro command_decl(command) %} |
- {% set method_name = command.name | to_title_case %} |
+ {% set method_name = command.name | sanitize_literal | to_title_case %} |
{% if command.description %} |
// {{ command.description }} |
{% endif %} |
@@ -108,7 +108,7 @@ class HEADLESS_EXPORT Domain { |
{# Generate response handlers for commands that need them. #} |
{% for command in domain.commands %} |
{% if not "returns" in command %}{% continue %}{% endif %} |
- {% set method_name = command.name | to_title_case %} |
+ {% set method_name = command.name | sanitize_literal | to_title_case %} |
static void Handle{{method_name}}Response(base::Callback<void(std::unique_ptr<{{method_name}}Result>)> callback, const base::Value& response); |
{% endfor %} |