Index: webkit/child/webkitplatformsupport_child_impl.cc |
diff --git a/webkit/child/webkitplatformsupport_child_impl.cc b/webkit/child/webkitplatformsupport_child_impl.cc |
index c23c404c37b4d73f8c173e2be6008908e22f6cf3..900cd52774ce31490c6b0acea91d30c2df2f113f 100644 |
--- a/webkit/child/webkitplatformsupport_child_impl.cc |
+++ b/webkit/child/webkitplatformsupport_child_impl.cc |
@@ -93,6 +93,8 @@ void WebKitPlatformSupportChildImpl::didStopWorkerRunLoop( |
WebKit::WebDiscardableMemory* |
WebKitPlatformSupportChildImpl::allocateAndLockDiscardableMemory(size_t bytes) { |
+ if (!base::DiscardableMemory::SupportedNatively()) |
+ return NULL; |
return WebDiscardableMemoryImpl::CreateLockedMemory(bytes).release(); |
} |