| Index: webkit/child/webkitplatformsupport_child_impl.cc
|
| diff --git a/webkit/child/webkitplatformsupport_child_impl.cc b/webkit/child/webkitplatformsupport_child_impl.cc
|
| index 3bb2b1954cb9d14d475b57ceec74e4e1dd31244b..86ff8faf1dd7855a85433e5761a3a746a5b9b56c 100644
|
| --- a/webkit/child/webkitplatformsupport_child_impl.cc
|
| +++ b/webkit/child/webkitplatformsupport_child_impl.cc
|
| @@ -93,7 +93,8 @@ void WebKitPlatformSupportChildImpl::didStopWorkerRunLoop(
|
|
|
| blink::WebDiscardableMemory*
|
| WebKitPlatformSupportChildImpl::allocateAndLockDiscardableMemory(size_t bytes) {
|
| - if (!base::DiscardableMemory::SupportedNatively())
|
| + DiscardableMemoryType type = base::DiscardableMemory::GetType();
|
| + if (type == DISCARDABLE_MEMORY_EMULATED)
|
| return NULL;
|
| return WebDiscardableMemoryImpl::CreateLockedMemory(bytes).release();
|
| }
|
|
|