| Index: extensions/browser/api/usb/usb_api.cc
|
| diff --git a/extensions/browser/api/usb/usb_api.cc b/extensions/browser/api/usb/usb_api.cc
|
| index 2ece8932ad2ed78f1a9314df2afc651a6c3677d9..3ff076764db4b0741288524538e94fe5e61da133 100644
|
| --- a/extensions/browser/api/usb/usb_api.cc
|
| +++ b/extensions/browser/api/usb/usb_api.cc
|
| @@ -525,7 +525,8 @@ void UsbFindDevicesFunction::OnGetDevicesComplete(
|
| const std::vector<scoped_refptr<UsbDevice>>& devices) {
|
| result_.reset(new base::ListValue());
|
| barrier_ = base::BarrierClosure(
|
| - devices.size(), base::Bind(&UsbFindDevicesFunction::OpenComplete, this));
|
| + static_cast<int>(devices.size()),
|
| + base::Bind(&UsbFindDevicesFunction::OpenComplete, this));
|
|
|
| for (const scoped_refptr<UsbDevice>& device : devices) {
|
| if (device->vendor_id() != vendor_id_ ||
|
|
|