| 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 0ae42778335411c744034c169d24a21ffa984f91..8aaa112a3ab1f925243635b910b6b0070461a742 100644
|
| --- a/third_party/WebKit/Source/core/mojo/MojoHandle.cpp
|
| +++ b/third_party/WebKit/Source/core/mojo/MojoHandle.cpp
|
| @@ -76,7 +76,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);
|
|
|