summaryrefslogtreecommitdiffstats
path: root/dbus
diff options
context:
space:
mode:
authorquiche <quiche@chromium.org>2015-10-23 08:06:03 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-23 15:06:56 +0000
commitb270236865580fbedf0eb24d6610a2051b6200a3 (patch)
tree2db641b9c8933f6509b6cdcdf10405b5f6659c20 /dbus
parentb691110ffbe800ca51718355bead239aa49b17a4 (diff)
downloadchromium_src-b270236865580fbedf0eb24d6610a2051b6200a3.zip
chromium_src-b270236865580fbedf0eb24d6610a2051b6200a3.tar.gz
chromium_src-b270236865580fbedf0eb24d6610a2051b6200a3.tar.bz2
Fix documentation for ObjectProxy::ConnectToSignal()
The documentation for ObjectProxy::ConnectToSignal() differs from the method's actual behavior. Fix this, by updating the documentation. BUG=545139 R=hashimoto@chromium.org TEST=compile Review URL: https://codereview.chromium.org/1406923005 Cr-Commit-Position: refs/heads/master@{#355785}
Diffstat (limited to 'dbus')
-rw-r--r--dbus/object_proxy.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/dbus/object_proxy.h b/dbus/object_proxy.h
index c0211b1..9f32821 100644
--- a/dbus/object_proxy.h
+++ b/dbus/object_proxy.h
@@ -146,8 +146,7 @@ class CHROME_DBUS_EXPORT ObjectProxy
ResponseCallback callback,
ErrorCallback error_callback);
- // Requests to connect to the signal from the remote object, replacing
- // any previous |signal_callback| connected to that signal.
+ // Requests to connect to the signal from the remote object.
//
// |signal_callback| will be called in the origin thread, when the
// signal is received from the remote object. As it's called in the
@@ -157,6 +156,11 @@ class CHROME_DBUS_EXPORT ObjectProxy
// |on_connected_callback| is called when the object proxy is connected
// to the signal, or failed to be connected, in the origin thread.
//
+ // If a SignalCallback has already been registered for the given
+ // |interface_name| and |signal_name|, |signal_callback| will be
+ // added to the list of callbacks for |interface_name| and
+ // |signal_name|.
+ //
// Must be called in the origin thread.
virtual void ConnectToSignal(const std::string& interface_name,
const std::string& signal_name,