commit | f8059813fd694cab2df23d384b577324c405a087 | [log] [tgz] |
---|---|---|
author | Yusuke Sato <yusukes@google.com> | Sat Jan 09 20:13:07 2010 +0900 |
committer | Yusuke Sato <yusukes@google.com> | Sat Jan 09 20:13:07 2010 +0900 |
tree | 88436fadacb22b2ecd71f6abd2a04e43e6b11628 | |
parent | 4952ab9f5cbd994aa0cf46fb1e0dfdaf8870a9ca [diff] [blame] |
Add BusConnection::g_connection() function, just like the Proxy class. This change is for http://codereview.chromium.org/521058. Review URL: http://codereview.chromium.org/527029
diff --git a/chromeos/dbus/dbus.h b/chromeos/dbus/dbus.h index f11a7ef..81840c5 100644 --- a/chromeos/dbus/dbus.h +++ b/chromeos/dbus/dbus.h
@@ -46,6 +46,11 @@ return *this; } + const value_type& g_connection() const { + DCHECK(object_) << "referencing an empty connection"; + return object_; + } + private: friend void swap(BusConnection& x, BusConnection& y);