| Index: third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
|
| diff --git a/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h b/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
|
| index 9645745bc71ccf4655ae5662e924c767a8af9eb8..255de5e9b15c3017de1e80fb0dd7b94bc4df4c4b 100644
|
| --- a/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
|
| +++ b/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
|
| @@ -19,14 +19,14 @@ class USBInTransferResult final
|
| , public ScriptWrappable {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| - static USBInTransferResult* create(const String& status, const Vector<uint8_t>& data)
|
| + static USBInTransferResult* create(const String& status, const Optional<Vector<uint8_t>>& data)
|
| {
|
| return new USBInTransferResult(status, data);
|
| }
|
|
|
| - USBInTransferResult(const String& status, const Vector<uint8_t>& data)
|
| + USBInTransferResult(const String& status, const Optional<Vector<uint8_t>>& data)
|
| : m_status(status)
|
| - , m_data(DOMDataView::create(DOMArrayBuffer::create(data.data(), data.size()), 0, data.size()))
|
| + , m_data(data ? DOMDataView::create(DOMArrayBuffer::create(data->data(), data->size()), 0, data->size()) : nullptr)
|
| {
|
| }
|
|
|
|
|