| Index: skia/ext/SkMemory_new_handler.cpp
|
| diff --git a/skia/ext/SkMemory_new_handler.cpp b/skia/ext/SkMemory_new_handler.cpp
|
| index b45ad1cd4eec0c58e3e765480e55b8a3f6f03dc1..c90a892182e2e58486836cbf28a4e21ab880bfd5 100644
|
| --- a/skia/ext/SkMemory_new_handler.cpp
|
| +++ b/skia/ext/SkMemory_new_handler.cpp
|
| @@ -34,13 +34,8 @@ void sk_abort_no_print() {
|
|
|
| void sk_out_of_memory(void) {
|
| SkASSERT(!"sk_out_of_memory");
|
| -#if defined(OS_WIN)
|
| - // Kill the process. This is important for security since most of code
|
| - // does not check the result of memory allocation.
|
| - // https://msdn.microsoft.com/en-us/library/het71c37.aspx
|
| - ::RaiseException(base::win::kOomExceptionCode, EXCEPTION_NONCONTINUABLE, 0,
|
| - nullptr);
|
| -#endif
|
| + base::TerminateBecauseOutOfMemory(0);
|
| + // Extra safety abort().
|
| abort();
|
| }
|
|
|
|
|