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

Unified Diff: content/browser/power_save_blocker_linux.cc

Issue 9378039: dbus: add ObjectPath type (Closed) Base URL: http://git.chromium.org/git/chromium/src@master
Patch Set: add patch for cryptohome_client 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 | « content/browser/geolocation/wifi_data_provider_linux_unittest.cc ('k') | dbus/bus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/power_save_blocker_linux.cc
diff --git a/content/browser/power_save_blocker_linux.cc b/content/browser/power_save_blocker_linux.cc
index 5a5b29e47bf9d7f1da5b14e0cd74a0dc982c8dc6..f08150ac7d8062dde70788bae76fcf3834f29a3c 100644
--- a/content/browser/power_save_blocker_linux.cc
+++ b/content/browser/power_save_blocker_linux.cc
@@ -20,6 +20,7 @@
#include "content/public/browser/browser_thread.h"
#include "dbus/bus.h"
#include "dbus/message.h"
+#include "dbus/object_path.h"
#include "dbus/object_proxy.h"
using content::BrowserThread;
@@ -136,7 +137,7 @@ class KDEPowerSaveBlocker: public DBusPowerSaveBlocker::Delegate {
scoped_refptr<dbus::ObjectProxy> object_proxy =
DBusPowerSaveBlocker::GetInstance()->bus()->GetObjectProxy(
"org.freedesktop.PowerManagement",
- "/org/freedesktop/PowerManagement/Inhibit");
+ dbus::ObjectPath("/org/freedesktop/PowerManagement/Inhibit"));
dbus::MethodCall method_call("org.freedesktop.PowerManagement.Inhibit",
"Inhibit");
dbus::MessageWriter message_writer(&method_call);
@@ -284,7 +285,7 @@ class GnomePowerSaveBlocker: public DBusPowerSaveBlocker::Delegate {
scoped_refptr<dbus::ObjectProxy> object_proxy =
DBusPowerSaveBlocker::GetInstance()->bus()->GetObjectProxy(
"org.gnome.SessionManager",
- "/org/gnome/SessionManager");
+ dbus::ObjectPath("/org/gnome/SessionManager"));
dbus::MethodCall method_call("org.gnome.SessionManager", "Inhibit");
dbus::MessageWriter message_writer(&method_call);
base::Callback<void(dbus::Response*)> bus_callback;
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_linux_unittest.cc ('k') | dbus/bus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698