| Index: third_party/WebKit/Source/core/mojo/MojoHandle.cpp
|
| diff --git a/third_party/WebKit/Source/core/mojo/MojoHandle.cpp b/third_party/WebKit/Source/core/mojo/MojoHandle.cpp
|
| index d2441055265f982ca4f212811d946c9ef5815aff..b48b61fe850d08039d9324fd29dbecb7cacdcead 100644
|
| --- a/third_party/WebKit/Source/core/mojo/MojoHandle.cpp
|
| +++ b/third_party/WebKit/Source/core/mojo/MojoHandle.cpp
|
| @@ -79,7 +79,9 @@ void MojoHandle::readMessage(const MojoReadMessageFlags& flagsDict,
|
| return;
|
| }
|
|
|
| - DOMArrayBuffer* buffer = DOMArrayBuffer::createUninitialized(numBytes, 1);
|
| + DOMArrayBuffer* buffer =
|
| + DOMArrayBuffer::createUninitializedOrNull(numBytes, 1);
|
| + CHECK(buffer);
|
| Vector<::MojoHandle, kHandleVectorInlineCapacity> rawHandles(numHandles);
|
| result = MojoReadMessage(m_handle->value(), buffer->data(), &numBytes,
|
| rawHandles.data(), &numHandles, flags);
|
|
|