Index: content/browser/power_save_blocker_linux.cc |
=================================================================== |
--- content/browser/power_save_blocker_linux.cc (revision 121922) |
+++ content/browser/power_save_blocker_linux.cc (working copy) |
@@ -20,7 +20,6 @@ |
#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; |
@@ -137,7 +136,7 @@ |
scoped_refptr<dbus::ObjectProxy> object_proxy = |
DBusPowerSaveBlocker::GetInstance()->bus()->GetObjectProxy( |
"org.freedesktop.PowerManagement", |
- dbus::ObjectPath("/org/freedesktop/PowerManagement/Inhibit")); |
+ "/org/freedesktop/PowerManagement/Inhibit"); |
dbus::MethodCall method_call("org.freedesktop.PowerManagement.Inhibit", |
"Inhibit"); |
dbus::MessageWriter message_writer(&method_call); |
@@ -285,7 +284,7 @@ |
scoped_refptr<dbus::ObjectProxy> object_proxy = |
DBusPowerSaveBlocker::GetInstance()->bus()->GetObjectProxy( |
"org.gnome.SessionManager", |
- dbus::ObjectPath("/org/gnome/SessionManager")); |
+ "/org/gnome/SessionManager"); |
dbus::MethodCall method_call("org.gnome.SessionManager", "Inhibit"); |
dbus::MessageWriter message_writer(&method_call); |
base::Callback<void(dbus::Response*)> bus_callback; |