Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1130)

Unified Diff: Source/wtf/ArrayBufferContents.cpp

Issue 1342853002: Never return NULL when allocating an ArrayBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/ArrayBufferContents.cpp
diff --git a/Source/wtf/ArrayBufferContents.cpp b/Source/wtf/ArrayBufferContents.cpp
index 1ac56fe8dedd38a4faaff4b28ff6ae301a2f54dc..6a75a5286cab13c5500cc63fc5ea893edf6dd0e7 100644
--- a/Source/wtf/ArrayBufferContents.cpp
+++ b/Source/wtf/ArrayBufferContents.cpp
@@ -102,7 +102,7 @@ void ArrayBufferContents::allocateMemory(size_t size, InitializationPolicy polic
{
if (s_adjustAmountOfExternalAllocatedMemoryFunction)
s_adjustAmountOfExternalAllocatedMemoryFunction(static_cast<int>(size));
- data = partitionAllocGenericFlags(WTF::Partitions::bufferPartition(), PartitionAllocReturnNull, size);
+ data = partitionAllocGeneric(WTF::Partitions::bufferPartition(), size);
if (policy == ZeroInitialize && data)
memset(data, '\0', size);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698