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

Unified Diff: device/usb/usb_device_impl.h

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_handle_impl.cc ('k') | device/usb/usb_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_impl.h
diff --git a/device/usb/usb_device_impl.h b/device/usb/usb_device_impl.h
index fed3db8400bfc0a7d16b190de16b8b97a86394b1..337c0e8642b6e4c3edadbf382e38e5b98d6b5473 100644
--- a/device/usb/usb_device_impl.h
+++ b/device/usb/usb_device_impl.h
@@ -6,7 +6,7 @@
#define DEVICE_USB_USB_DEVICE_IMPL_H_
#include <stdint.h>
-
+#include <utility>
#include <vector>
#include "base/callback.h"
@@ -61,7 +61,7 @@ class UsbDeviceImpl : public UsbDevice {
}
void set_device_path(const std::string& value) { device_path_ = value; }
void set_webusb_allowed_origins(scoped_ptr<WebUsbDescriptorSet> descriptors) {
- webusb_allowed_origins_ = descriptors.Pass();
+ webusb_allowed_origins_ = std::move(descriptors);
}
void set_webusb_landing_page(const GURL& url) { webusb_landing_page_ = url; }
« no previous file with comments | « device/usb/usb_device_handle_impl.cc ('k') | device/usb/usb_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698