| Index: content/renderer/pepper_plugin_delegate_impl.cc
|
| ===================================================================
|
| --- content/renderer/pepper_plugin_delegate_impl.cc (revision 86296)
|
| +++ content/renderer/pepper_plugin_delegate_impl.cc (working copy)
|
| @@ -1301,11 +1301,6 @@
|
| uint32_t size) {
|
| if (size == 0)
|
| return NULL;
|
| - scoped_ptr<base::SharedMemory> shm(new base::SharedMemory());
|
| - if (shm->CreateAnonymous(size))
|
| - return shm.release();
|
| - // The sandbox can prevent CreateAnonymous from succeeding, in which case we
|
| - // need to IPC to the browser process.
|
| base::SharedMemoryHandle handle;
|
| if (!render_view_->Send(
|
| new ViewHostMsg_AllocateSharedMemoryBuffer(size, &handle))) {
|
| @@ -1316,6 +1311,5 @@
|
| DLOG(WARNING) << "Browser failed to allocate shared memory";
|
| return NULL;
|
| }
|
| - shm.reset(new base::SharedMemory(handle, false));
|
| - return shm.release();
|
| + return new base::SharedMemory(handle, false);
|
| }
|
|
|