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

Unified Diff: device/usb/usb_service_impl.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/usb/usb_device_impl.h ('k') | device/vibration/vibration_manager_impl_default.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_service_impl.cc
diff --git a/device/usb/usb_service_impl.cc b/device/usb/usb_service_impl.cc
index 1f6ca57f2a7788febab8a0e6786ea3b8a4cb3859..b169d83074507ddbb6c07e3a1c4a793a04434749 100644
--- a/device/usb/usb_service_impl.cc
+++ b/device/usb/usb_service_impl.cc
@@ -5,9 +5,9 @@
#include "device/usb/usb_service_impl.h"
#include <stdint.h>
-
#include <list>
#include <set>
+#include <utility>
#include "base/barrier_closure.h"
#include "base/bind.h"
@@ -197,7 +197,7 @@ void OnReadWebUsbAllowedOrigins(scoped_refptr<UsbDevice> device,
if (descriptors->Parse(
std::vector<uint8_t>(buffer->data(), buffer->data() + length))) {
UsbDeviceImpl* device_impl = static_cast<UsbDeviceImpl*>(device.get());
- device_impl->set_webusb_allowed_origins(descriptors.Pass());
+ device_impl->set_webusb_allowed_origins(std::move(descriptors));
}
callback.Run();
}
« no previous file with comments | « device/usb/usb_device_impl.h ('k') | device/vibration/vibration_manager_impl_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698