Index: webrtc/modules/desktop_capture/desktop_frame.cc |
diff --git a/webrtc/modules/desktop_capture/desktop_frame.cc b/webrtc/modules/desktop_capture/desktop_frame.cc |
index 6bc7b2e38f646f85972926544cd0e35f29e21764..3278ed46dcb1d282969f74981d5fec84fd58140a 100644 |
--- a/webrtc/modules/desktop_capture/desktop_frame.cc |
+++ b/webrtc/modules/desktop_capture/desktop_frame.cc |
@@ -84,8 +84,7 @@ std::unique_ptr<DesktopFrame> SharedMemoryDesktopFrame::Create( |
size_t buffer_size = |
size.width() * size.height() * DesktopFrame::kBytesPerPixel; |
std::unique_ptr<SharedMemory> shared_memory; |
- shared_memory = rtc::ScopedToUnique( |
- shared_memory_factory->CreateSharedMemory(buffer_size)); |
+ shared_memory = shared_memory_factory->CreateSharedMemory(buffer_size); |
if (!shared_memory) |
return nullptr; |