diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-04 21:50:47 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-04 21:50:47 +0000 |
commit | 19853e39a6dbf6ce1a1d8fb8015754832d4d409e (patch) | |
tree | c13083fc801b9d4278dcf6d6f2163706e5e0f915 /dbus | |
parent | 694498e8de96b8ed22c4cdca26370d66ab0d6dfc (diff) | |
download | chromium_src-19853e39a6dbf6ce1a1d8fb8015754832d4d409e.zip chromium_src-19853e39a6dbf6ce1a1d8fb8015754832d4d409e.tar.gz chromium_src-19853e39a6dbf6ce1a1d8fb8015754832d4d409e.tar.bz2 |
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
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/object_proxy.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ class CHROME_DBUS_EXPORT ObjectProxy // 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(); |