| Index: third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
|
| diff --git a/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
|
| index 7e04c0cfa554a7fbcb81dada5ac700ef426bac65..fb0aaf17fdacc883ca4376646bbed6d58d00a81a 100644
|
| --- a/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
|
| +++ b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
|
| @@ -20,6 +20,7 @@
|
| #include "public/platform/ServiceRegistry.h"
|
| #include "public/platform/WebImageCaptureFrameGrabber.h"
|
| #include "public/platform/WebMediaStreamTrack.h"
|
| +#include "wtf/PtrUtil.h"
|
|
|
| namespace blink {
|
|
|
| @@ -159,7 +160,7 @@ ScriptPromise ImageCapture::grabFrame(ScriptState* scriptState, ExceptionState&
|
|
|
| // Create |m_frameGrabber| the first time.
|
| if (!m_frameGrabber)
|
| - m_frameGrabber = adoptPtr(Platform::current()->createImageCaptureFrameGrabber());
|
| + m_frameGrabber = wrapUnique(Platform::current()->createImageCaptureFrameGrabber());
|
|
|
| if (!m_frameGrabber) {
|
| resolver->reject(DOMException::create(UnknownError, "Couldn't create platform resources"));
|
|
|