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

Unified Diff: device/battery/battery_status_manager_linux.cc

Issue 1544323002: Convert Pass()→std::move() in //device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « device/battery/battery_monitor_impl.cc ('k') | device/battery/battery_status_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « device/battery/battery_monitor_impl.cc ('k') | device/battery/battery_status_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698