summaryrefslogtreecommitdiffstats
path: root/dbus
diff options
context:
space:
mode:
authorstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-19 19:12:11 +0000
committerstevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-19 19:12:11 +0000
commitd0d89add98eec9f0ebc749d65ff12f08ee6d993d (patch)
treefea86e533741b401e746f5d38a8ba9705a4b6b08 /dbus
parent5eab6e92779310a68cbea80cff0f7a30cebeffcd (diff)
downloadchromium_src-d0d89add98eec9f0ebc749d65ff12f08ee6d993d.zip
chromium_src-d0d89add98eec9f0ebc749d65ff12f08ee6d993d.tar.gz
chromium_src-d0d89add98eec9f0ebc749d65ff12f08ee6d993d.tar.bz2
Track active references in ShillClientHelper
To prevent Shill Service DBus ObjectProxy instances from accumulating, remove them when the service becomes inactive. BUG=223483 Review URL: https://chromiumcodereview.appspot.com/23658053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus')
-rw-r--r--dbus/object_proxy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/object_proxy.h b/dbus/object_proxy.h
index 798ba97..72a4a59 100644
--- a/dbus/object_proxy.h
+++ b/dbus/object_proxy.h
@@ -153,6 +153,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();