| Index: content/browser/battery_status/battery_status_manager_linux.cc
|
| diff --git a/content/browser/battery_status/battery_status_manager_linux.cc b/content/browser/battery_status/battery_status_manager_linux.cc
|
| index e6abf88ed4eb11b4f53ee7b1e9d771e87caf98d5..6539f05714180257c0670c160057c0d16eda4c5f 100644
|
| --- a/content/browser/battery_status/battery_status_manager_linux.cc
|
| +++ b/content/browser/battery_status/battery_status_manager_linux.cc
|
| @@ -123,7 +123,7 @@ class BatteryStatusNotificationThread : public base::Thread {
|
| void StartListening() {
|
| DCHECK(OnWatcherThread());
|
|
|
| - if (system_bus_)
|
| + if (system_bus_.get())
|
| return;
|
|
|
| InitDBus();
|
| @@ -201,7 +201,7 @@ class BatteryStatusNotificationThread : public base::Thread {
|
| void ShutdownDBusConnection() {
|
| DCHECK(OnWatcherThread());
|
|
|
| - if (!system_bus_)
|
| + if (!system_bus_.get())
|
| return;
|
|
|
| // Shutdown DBus connection later because there may be pending tasks on
|
| @@ -223,7 +223,7 @@ class BatteryStatusNotificationThread : public base::Thread {
|
| return;
|
| }
|
|
|
| - if (!system_bus_)
|
| + if (!system_bus_.get())
|
| return;
|
|
|
| if (success) {
|
| @@ -238,7 +238,7 @@ class BatteryStatusNotificationThread : public base::Thread {
|
| void BatteryChanged(dbus::Signal* signal /* unsused */) {
|
| DCHECK(OnWatcherThread());
|
|
|
| - if (!system_bus_)
|
| + if (!system_bus_.get())
|
| return;
|
|
|
| scoped_ptr<base::DictionaryValue> dictionary =
|
|
|