chromeos-dbus-bindings: Make Interface destructor virtual.

As required per style and to support using -Wnon-virtual-dtor on generated
code, this patch makes the protected destructor virtual on the proxy
interface.

BUG=None
TEST=sudo env FEATURES=test emerge chromeos-dbus-bindings; update_engine_client compiles with -Wnon-virtual-dtor.

Change-Id: I9904cf823e5e3fc028ab870adbbbd26a3f0da44b
Reviewed-on: https://chromium-review.googlesource.com/280877
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
diff --git a/chromeos-dbus-bindings/proxy_generator_unittest.cc b/chromeos-dbus-bindings/proxy_generator_unittest.cc
index 165d068..653bb8e 100644
--- a/chromeos-dbus-bindings/proxy_generator_unittest.cc
+++ b/chromeos-dbus-bindings/proxy_generator_unittest.cc
@@ -107,7 +107,7 @@
       int timeout_ms = dbus::ObjectProxy::TIMEOUT_USE_DEFAULT) = 0;
 
  protected:
-  ~TestInterfaceProxyInterface() = default;
+  virtual ~TestInterfaceProxyInterface() = default;
 };
 
 }  // namespace chromium
@@ -128,7 +128,7 @@
               bus_->GetObjectProxy(service_name_, object_path_)} {
   }
 
-  ~TestInterfaceProxy() {
+  ~TestInterfaceProxy() override {
   }
 
   void RegisterCloserSignalHandler(
@@ -316,7 +316,7 @@
       int timeout_ms = dbus::ObjectProxy::TIMEOUT_USE_DEFAULT) = 0;
 
  protected:
-  ~TestInterface2ProxyInterface() = default;
+  virtual ~TestInterface2ProxyInterface() = default;
 };
 
 }  // namespace chromium
@@ -339,7 +339,7 @@
               bus_->GetObjectProxy(service_name_, object_path_)} {
   }
 
-  ~TestInterface2Proxy() {
+  ~TestInterface2Proxy() override {
   }
 
   void ReleaseObjectProxy(const base::Closure& callback) {
@@ -422,7 +422,7 @@
 class TestInterfaceProxyInterface {
  public:
  protected:
-  ~TestInterfaceProxyInterface() = default;
+  virtual ~TestInterfaceProxyInterface() = default;
 };
 
 }  // namespace chromium
@@ -440,7 +440,7 @@
           bus_->GetObjectProxy(service_name_, object_path_)} {
   }
 
-  ~TestInterfaceProxy() {
+  ~TestInterfaceProxy() override {
   }
 
   void RegisterCloserSignalHandler(
@@ -483,7 +483,7 @@
 class TestInterface2ProxyInterface {
  public:
  protected:
-  ~TestInterface2ProxyInterface() = default;
+  virtual ~TestInterface2ProxyInterface() = default;
 };
 
 }  // namespace chromium
@@ -504,7 +504,7 @@
               bus_->GetObjectProxy(service_name_, object_path_)} {
   }
 
-  ~TestInterface2Proxy() {
+  ~TestInterface2Proxy() override {
   }
 
   void ReleaseObjectProxy(const base::Closure& callback) {
@@ -568,7 +568,7 @@
   virtual const std::string& data() const = 0;
 
  protected:
-  ~Itf1ProxyInterface() = default;
+  virtual ~Itf1ProxyInterface() = default;
 };
 
 }  // namespace chromium
@@ -607,7 +607,7 @@
               bus_->GetObjectProxy(service_name_, object_path_)} {
   }
 
-  ~Itf1Proxy() {
+  ~Itf1Proxy() override {
   }
 
   void RegisterCloserSignalHandler(
@@ -670,7 +670,7 @@
 class Itf2ProxyInterface {
  public:
  protected:
-  ~Itf2ProxyInterface() = default;
+  virtual ~Itf2ProxyInterface() = default;
 };
 
 }  // namespace chromium
@@ -707,7 +707,7 @@
               bus_->GetObjectProxy(service_name_, object_path_)} {
   }
 
-  ~Itf2Proxy() {
+  ~Itf2Proxy() override {
   }
 
   void ReleaseObjectProxy(const base::Closure& callback) {
@@ -945,7 +945,7 @@
 class Itf1ProxyInterface {
  public:
  protected:
-  ~Itf1ProxyInterface() = default;
+  virtual ~Itf1ProxyInterface() = default;
 };
 
 }  // namespace chromium
@@ -977,7 +977,7 @@
           bus_->GetObjectProxy(service_name_, object_path_)} {
   }
 
-  ~Itf1Proxy() {
+  ~Itf1Proxy() override {
   }
 
   void RegisterCloserSignalHandler(
@@ -1020,7 +1020,7 @@
 class Itf2ProxyInterface {
  public:
  protected:
-  ~Itf2ProxyInterface() = default;
+  virtual ~Itf2ProxyInterface() = default;
 };
 
 }  // namespace chromium
@@ -1055,7 +1055,7 @@
               bus_->GetObjectProxy(service_name_, object_path_)} {
   }
 
-  ~Itf2Proxy() {
+  ~Itf2Proxy() override {
   }
 
   void ReleaseObjectProxy(const base::Closure& callback) {