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

Unified Diff: dbus/scoped_dbus_error.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: Use pair, factor out error logging logic 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
« dbus/object_proxy.cc ('K') | « dbus/object_proxy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/scoped_dbus_error.h
diff --git a/dbus/scoped_dbus_error.h b/dbus/scoped_dbus_error.h
index e76e4f722b5bf603210a3449456377117970a4f7..05ec09879841d241c734f576bfee219b12adce4a 100644
--- a/dbus/scoped_dbus_error.h
+++ b/dbus/scoped_dbus_error.h
@@ -23,6 +23,7 @@ class ScopedDBusError {
DBusError* get() { return &error_; }
bool is_set() { return dbus_error_is_set(&error_); }
+ const char* name() { return error_.name; }
const char* message() { return error_.message; }
private:
« dbus/object_proxy.cc ('K') | « dbus/object_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698