Make backend destructor public
This allows Backend pointers to point to derived classes.
BUG=648701
Review-Url: https://codereview.chromium.org/2365283003
Cr-Commit-Position: refs/heads/master@{#421221}
diff --git a/third_party/WebKit/Source/platform/inspector_protocol/templates/TypeBuilder_h.template b/third_party/WebKit/Source/platform/inspector_protocol/templates/TypeBuilder_h.template
index b72cdf220..553ba55f 100644
--- a/third_party/WebKit/Source/platform/inspector_protocol/templates/TypeBuilder_h.template
+++ b/third_party/WebKit/Source/platform/inspector_protocol/templates/TypeBuilder_h.template
@@ -185,6 +185,8 @@
class {{config.protocol.export_macro}} Backend {
public:
+ virtual ~Backend() { }
+
{% for command in domain.commands %}
{% if "redirect" in command %}{% continue %}{% endif %}
{% if ("handlers" in command) and not ("renderer" in command["handlers"]) %}{% continue %}{% endif %}
@@ -233,9 +235,6 @@
{% if not has_disable(domain.commands) %}
virtual void disable(ErrorString*) { }
{% endif %}
-
-protected:
- virtual ~Backend() { }
};
// ------------- Frontend interface.