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

Unified Diff: dbus/bus.h

Issue 9373039: Allow dbus clients to silence logging when a service is unavailable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | dbus/bus.cc » ('j') | dbus/object_proxy.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/bus.h
diff --git a/dbus/bus.h b/dbus/bus.h
index 4af07ce1089fc2585a3c0eb6ff5dd040458e8600..4b4a7ebbdbb4ed994d84ac96a5cdb57259b6d082 100644
--- a/dbus/bus.h
+++ b/dbus/bus.h
@@ -196,6 +196,13 @@ class Bus : public base::RefCountedThreadSafe<Bus> {
virtual ObjectProxy* GetObjectProxy(const std::string& service_name,
const std::string& object_path);
+ // Same as above, but silence logging of
+ // org.freedesktop.DBus.Error.ServiceUnknown errors.
+ // This is useful for clients for whom the non-existence of the DBus
+ // service in question can be safely ignored.
+ virtual ObjectProxy* GetObjectProxyIgnoreUnknownService(
satorux1 2012/02/10 08:12:52 Let's make this more generic, like GetObjectProxyW
adamk 2012/02/10 17:57:16 Done.
+ const std::string& service_name, const std::string& object_path);
+
// Gets the exported object for the given service name and the object
// path. The caller must not delete the returned object.
//
« no previous file with comments | « no previous file | dbus/bus.cc » ('j') | dbus/object_proxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698