Index: device/battery/battery_status_manager_linux.cc |
diff --git a/device/battery/battery_status_manager_linux.cc b/device/battery/battery_status_manager_linux.cc |
index cf07f78192364ac59f16e559f97884c3e3662f6e..0f5cfc7fe33674d2b8a76672d23c0e4a4d75410d 100644 |
--- a/device/battery/battery_status_manager_linux.cc |
+++ b/device/battery/battery_status_manager_linux.cc |
@@ -85,7 +85,7 @@ scoped_ptr<base::DictionaryValue> GetPropertiesAsDictionary( |
scoped_ptr<PathsVector> GetPowerSourcesPaths(dbus::ObjectProxy* proxy) { |
scoped_ptr<PathsVector> paths(new PathsVector()); |
if (!proxy) |
- return paths.Pass(); |
+ return paths; |
dbus::MethodCall method_call(kUPowerServiceName, kUPowerEnumerateDevices); |
scoped_ptr<dbus::Response> response( |
@@ -96,7 +96,7 @@ scoped_ptr<PathsVector> GetPowerSourcesPaths(dbus::ObjectProxy* proxy) { |
dbus::MessageReader reader(response.get()); |
reader.PopArrayOfObjectPaths(paths.get()); |
} |
- return paths.Pass();; |
+ return paths; |
} |
void UpdateNumberBatteriesHistogram(int count) { |