Index: third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp |
diff --git a/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp b/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp |
index c94cacd8d597499d2f42c602f25111d4347c3f8d..d48481d7d87613d5358fb59e118f6bc798b0fd99 100644 |
--- a/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp |
+++ b/third_party/WebKit/Source/core/fileapi/FileReaderLoader.cpp |
@@ -307,7 +307,7 @@ FileError::ErrorCode FileReaderLoader::httpStatusCodeToErrorCode(int httpStatusC |
} |
} |
-PassRefPtr<DOMArrayBuffer> FileReaderLoader::arrayBufferResult() const |
+PassRefPtr<DOMArrayBuffer> FileReaderLoader::arrayBufferResultOrNull() const |
{ |
ASSERT(m_readType == ReadAsArrayBuffer); |
@@ -315,7 +315,7 @@ PassRefPtr<DOMArrayBuffer> FileReaderLoader::arrayBufferResult() const |
if (!m_rawData || m_errorCode) |
return nullptr; |
- return DOMArrayBuffer::create(m_rawData->toArrayBuffer()); |
+ return DOMArrayBuffer::createOrNull(m_rawData->toArrayBuffer()); |
} |
String FileReaderLoader::stringResult() |