Track active references in ShillClientHelper (Take 2)
To prevent Shill Service DBus ObjectProxy instances from accumulating,
remove them when the service becomes inactive.
Original CL: https://codereview.chromium.org/23658053/
BUG=223483
TBR=hashimoto@chromium.org
Review URL: https://codereview.chromium.org/24558004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227100 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 19853e39a6dbf6ce1a1d8fb8015754832d4d409e
diff --git a/dbus/object_proxy.h b/dbus/object_proxy.h
index b183be2..48c9c03 100644
--- a/dbus/object_proxy.h
+++ b/dbus/object_proxy.h
@@ -166,6 +166,8 @@
// BLOCKING CALL.
virtual void Detach();
+ const ObjectPath& object_path() const { return object_path_; }
+
// Returns an empty callback that does nothing. Can be used for
// CallMethod().
static ResponseCallback EmptyResponseCallback();