| Index: device/usb/webusb_descriptors.h
|
| diff --git a/device/usb/webusb_descriptors.h b/device/usb/webusb_descriptors.h
|
| index a13440ce8bf44318e02349a91ef0897b1a9809bb..c88b1f97389dd022677d7edb4a499a7a970bcdde 100644
|
| --- a/device/usb/webusb_descriptors.h
|
| +++ b/device/usb/webusb_descriptors.h
|
| @@ -6,6 +6,8 @@
|
| #define DEVICE_USB_WEBUSB_DESCRIPTORS_H_
|
|
|
| #include <stdint.h>
|
| +
|
| +#include <memory>
|
| #include <vector>
|
|
|
| #include "base/callback_forward.h"
|
| @@ -64,8 +66,9 @@ bool ParseWebUsbUrlDescriptor(const std::vector<uint8_t>& bytes, GURL* output);
|
|
|
| void ReadWebUsbDescriptors(
|
| scoped_refptr<UsbDeviceHandle> device_handle,
|
| - const base::Callback<void(scoped_ptr<WebUsbAllowedOrigins> allowed_origins,
|
| - const GURL& landing_page)>& callback);
|
| + const base::Callback<
|
| + void(std::unique_ptr<WebUsbAllowedOrigins> allowed_origins,
|
| + const GURL& landing_page)>& callback);
|
|
|
| // Check if the origin is allowed.
|
| bool FindInWebUsbAllowedOrigins(
|
|
|