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

Unified Diff: device/hid/hid_service_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/hid/hid_connection_linux.cc ('k') | device/serial/data_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_service_linux.cc
diff --git a/device/hid/hid_service_linux.cc b/device/hid/hid_service_linux.cc
index 6b48cdad8eccea701afa87df5f9f31861fb838a9..f48e473bff4b0c266a91b632ae038a5cc586668a 100644
--- a/device/hid/hid_service_linux.cc
+++ b/device/hid/hid_service_linux.cc
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <limits>
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/files/file.h"
@@ -310,7 +311,7 @@ void HidServiceLinux::OpenOnBlockingThread(scoped_ptr<ConnectParams> params) {
return;
}
- FinishOpen(params.Pass());
+ FinishOpen(std::move(params));
}
#endif // defined(OS_CHROMEOS)
@@ -334,9 +335,9 @@ void HidServiceLinux::FinishOpen(scoped_ptr<ConnectParams> params) {
// static
void HidServiceLinux::CreateConnection(scoped_ptr<ConnectParams> params) {
DCHECK(params->device_file.IsValid());
- params->callback.Run(make_scoped_refptr(
- new HidConnectionLinux(params->device_info, params->device_file.Pass(),
- params->file_task_runner)));
+ params->callback.Run(make_scoped_refptr(new HidConnectionLinux(
+ params->device_info, std::move(params->device_file),
+ params->file_task_runner)));
}
} // namespace device
« no previous file with comments | « device/hid/hid_connection_linux.cc ('k') | device/serial/data_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698