1From f34f528c1fc4512910b2acc586e678ddb53eaf9e Mon Sep 17 00:00:00 2001 2From: Hidehiko Abe <hidehiko@chromium.org> 3Date: Wed, 2 Oct 2019 09:53:00 +0900 4Subject: [PATCH] libchrome: Add EmptyResponseCallback for backward 5 compatiblity. 6 7BUG=chromium:909719 8TEST=Build locally. 9 10Change-Id: I4d6c75f267fd6c170b966647c30c91bb02b3ee14 11--- 12 dbus/object_proxy.h | 7 +++++++ 13 1 file changed, 7 insertions(+) 14 15diff --git a/dbus/object_proxy.h b/dbus/object_proxy.h 16index 22e44f1..7d62eb9 100644 17--- a/dbus/object_proxy.h 18+++ b/dbus/object_proxy.h 19@@ -13,6 +13,7 @@ 20 #include <string> 21 #include <vector> 22 23+#include "base/bind.h" 24 #include "base/callback.h" 25 #include "base/macros.h" 26 #include "base/memory/ref_counted.h" 27@@ -105,6 +106,12 @@ class CHROME_DBUS_EXPORT ObjectProxy 28 using OnConnectedCallback = 29 base::OnceCallback<void(const std::string&, const std::string&, bool)>; 30 31+ // TOOD(crbug.com/909719): This is just for backward compatibility. 32+ // Remove this callback after clients are migrated. 33+ static ResponseCallback EmptyResponseCallback() { 34+ return base::BindOnce([](Response*){}); 35+ } 36+ 37 // Calls the method of the remote object and blocks until the response 38 // is returned. Returns NULL on error with the error details specified 39 // in the |error| object. 40-- 412.23.0.581.g78d2f28ef7-goog 42 43