| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <dlfcn.h> | 9 #include <dlfcn.h> |
| 10 #include <errno.h> | 10 #include <errno.h> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 if (sysctl(mib, arraysize(mib), &kp, &len, NULL, 0) < 0) | 57 if (sysctl(mib, arraysize(mib), &kp, &len, NULL, 0) < 0) |
| 58 return FilePath(); | 58 return FilePath(); |
| 59 if ((kp.p_flag & P_SYSTEM) != 0) | 59 if ((kp.p_flag & P_SYSTEM) != 0) |
| 60 return FilePath(); | 60 return FilePath(); |
| 61 if (strcmp(kp.p_comm, "chrome") == 0) | 61 if (strcmp(kp.p_comm, "chrome") == 0) |
| 62 return FilePath(kp.p_comm); | 62 return FilePath(kp.p_comm); |
| 63 | 63 |
| 64 return FilePath(); | 64 return FilePath(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 void EnableTerminationOnOutOfMemory() { | |
| 68 } | |
| 69 | |
| 70 void EnableTerminationOnHeapCorruption() { | |
| 71 } | |
| 72 | |
| 73 } // namespace base | 67 } // namespace base |
| OLD | NEW |