| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/process_util.h" | 5 #include "base/process_util.h" |
| 6 | 6 |
| 7 #include <ctype.h> | 7 #include <ctype.h> |
| 8 #include <dirent.h> | 8 #include <dirent.h> |
| 9 #include <errno.h> | 9 #include <errno.h> |
| 10 #include <fcntl.h> | 10 #include <fcntl.h> |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 result_in_kb = StringToInt(meminfo_fields[kMemTotalIndex]); | 491 result_in_kb = StringToInt(meminfo_fields[kMemTotalIndex]); |
| 492 result_in_kb -= StringToInt(meminfo_fields[kMemFreeIndex]); | 492 result_in_kb -= StringToInt(meminfo_fields[kMemFreeIndex]); |
| 493 result_in_kb -= StringToInt(meminfo_fields[kMemBuffersIndex]); | 493 result_in_kb -= StringToInt(meminfo_fields[kMemBuffersIndex]); |
| 494 result_in_kb -= StringToInt(meminfo_fields[kMemCacheIndex]); | 494 result_in_kb -= StringToInt(meminfo_fields[kMemCacheIndex]); |
| 495 | 495 |
| 496 return result_in_kb; | 496 return result_in_kb; |
| 497 } | 497 } |
| 498 | 498 |
| 499 void EnableTerminationOnOutOfMemory() { | 499 void EnableTerminationOnOutOfMemory() { |
| 500 // http://crbug.com/27222 | 500 // http://crbug.com/27222 |
| 501 NOTIMPLEMENTED(); | |
| 502 } | 501 } |
| 503 | 502 |
| 504 } // namespace base | 503 } // namespace base |
| OLD | NEW |