Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: src/common/chromeos/dbus/dbus.h

Issue 527029: Add BusConnection::gconnection() function. (Closed)
Patch Set: addressed the issue Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/common/chromeos/dbus/dbus.h
diff --git a/src/common/chromeos/dbus/dbus.h b/src/common/chromeos/dbus/dbus.h
index f11a7ef4547f93801b9b7a9af74c1d2f5c95188e..81840c53bc114092e345befa3e339a2b10d78983 100644
--- a/src/common/chromeos/dbus/dbus.h
+++ b/src/common/chromeos/dbus/dbus.h
@@ -46,6 +46,11 @@ class BusConnection {
return *this;
}
+ const value_type& g_connection() const {
+ DCHECK(object_) << "referencing an empty connection";
+ return object_;
+ }
+
private:
friend void swap(BusConnection& x, BusConnection& y);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698