Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2136)

Unified Diff: base/process/memory.cc

Issue 1531443002: Update base to extend NaCl support (needed for skia support) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « base/process/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698