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

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

Issue 2133004: Proxy Constructor for peer proxy. (Closed) Base URL: http://src.chromium.org/git/chromiumos.git
Patch Set: Created 10 years, 7 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 | « src/common/chromeos/dbus/dbus.h ('k') | 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.cc
diff --git a/src/common/chromeos/dbus/dbus.cc b/src/common/chromeos/dbus/dbus.cc
index 486f908bd334eea90e7e0c539b89aac1d822bcf4..656f7b2a97b755e906b5bacc8332ccdce7706864 100644
--- a/src/common/chromeos/dbus/dbus.cc
+++ b/src/common/chromeos/dbus/dbus.cc
@@ -125,6 +125,19 @@ Proxy::value_type Proxy::GetGProxy(const BusConnection& connection,
return result;
}
+/* static */
+Proxy::value_type Proxy::GetGPeerProxy(const BusConnection& connection,
+ const char* path,
+ const char* interface) {
+ value_type result = ::dbus_g_proxy_new_for_peer(connection.object_,
+ path,
+ interface);
+ if (!result)
+ LOG(ERROR) << "Failed to construct peer proxy: " << path;
+
+ return result;
+}
+
bool RegisterExclusiveService(const BusConnection& connection,
const char* interface_name,
const char* service_name,
« no previous file with comments | « src/common/chromeos/dbus/dbus.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698