| Index: base/process/memory.h
|
| diff --git a/base/process/memory.h b/base/process/memory.h
|
| index fc0a2f04531b5bb2de647a9e2e915051edabd065..be669dd847606bc743af75768837644a1841ee2a 100644
|
| --- a/base/process/memory.h
|
| +++ b/base/process/memory.h
|
| @@ -48,20 +48,6 @@ const int kMaxOomScore = 1000;
|
| BASE_EXPORT bool AdjustOOMScore(ProcessId process, int score);
|
| #endif
|
|
|
| -#if defined(OS_WIN)
|
| -namespace win {
|
| -
|
| -// Custom exception code chosen to indicate an out of memory error.
|
| -// See https://msdn.microsoft.com/en-us/library/het71c37.aspx.
|
| -// "To make sure that you do not define a code that conflicts with an existing
|
| -// exception code" ... "The resulting error code should therefore have the
|
| -// highest four bits set to hexadecimal E."
|
| -// 0xe0000008 was chosen arbitrarily, as 0x00000008 is ERROR_NOT_ENOUGH_MEMORY.
|
| -const DWORD kOomExceptionCode = 0xe0000008;
|
| -
|
| -} // namespace win
|
| -#endif
|
| -
|
| // Special allocator functions for callers that want to check for OOM.
|
| // These will not abort if the allocation fails even if
|
| // EnableTerminationOnOutOfMemory has been called.
|
|
|