diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/webusb/usb_device.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/webusb/usb_device.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/modules/webusb/usb_device.cc b/chromium/third_party/blink/renderer/modules/webusb/usb_device.cc index 26a36efc7d7..bf24edc43e4 100644 --- a/chromium/third_party/blink/renderer/modules/webusb/usb_device.cc +++ b/chromium/third_party/blink/renderer/modules/webusb/usb_device.cc @@ -54,7 +54,7 @@ const char kInterfaceStateChangeInProgress[] = "An operation that changes interface state is in progress."; const char kOpenRequired[] = "The device must be opened first."; -#if BUILDFLAG(IS_ASH) +#if BUILDFLAG(IS_CHROMEOS_ASH) const char kExtensionProtocol[] = "chrome-extension"; // These Imprivata extensions can claim the protected HID interface class (used @@ -96,7 +96,7 @@ bool IsClassAllowedForExtension(uint8_t class_code, const KURL& url) { return false; } } -#endif // BUILDFLAG(IS_ASH) +#endif // BUILDFLAG(IS_CHROMEOS_ASH) DOMException* ConvertFatalTransferStatus(const UsbTransferStatus& status) { switch (status) { @@ -161,7 +161,7 @@ bool ConvertBufferSource(const ArrayBufferOrArrayBufferView& buffer_source, vector->Append(static_cast<uint8_t*>(array_buffer->Data()), static_cast<wtf_size_t>(array_buffer->ByteLength())); } else { - DOMArrayBufferView* view = buffer_source.GetAsArrayBufferView().View(); + DOMArrayBufferView* view = buffer_source.GetAsArrayBufferView().Get(); if (!view->buffer() || view->buffer()->IsDetached()) { resolver->Reject(MakeGarbageCollected<DOMException>( DOMExceptionCode::kInvalidStateError, kDetachedBuffer)); @@ -669,7 +669,7 @@ bool USBDevice::IsProtectedInterfaceClass(wtf_size_t interface_index) const { if (std::binary_search(std::begin(kProtectedClasses), std::end(kProtectedClasses), alternate->class_code)) { -#if BUILDFLAG(IS_ASH) +#if BUILDFLAG(IS_CHROMEOS_ASH) return !IsClassAllowedForExtension(alternate->class_code, GetExecutionContext()->Url()); #else |