Chromium Code Reviews| Index: base/process/memory.cc |
| diff --git a/base/process/memory.cc b/base/process/memory.cc |
| index 133a72a0f75a56e2890eb5b9cb7c71aac8597e9e..6214f7f39c18f243a95d52cb5fa74af849e97631 100644 |
| --- a/base/process/memory.cc |
| +++ b/base/process/memory.cc |
| @@ -45,4 +45,11 @@ bool UncheckedCalloc(size_t num_items, size_t size, void** result) { |
| #endif |
| +#if defined(OS_NACL) |
| +bool UncheckedMalloc(size_t size, void** result) { |
| + *result = malloc(size); |
| + return *result != NULL; |
| +} |
| +#endif |
| + |
| } // namespace base |