| 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 721eb200dc2099f32d5c30e6830fdd2ae5e6eca9..22797be97ceca88164c50b6380c441eacfe39da7 100644
|
| --- a/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
|
| +++ b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
|
| @@ -19,6 +19,7 @@
|
| #include "public/platform/ServiceRegistry.h"
|
| #include "public/platform/WebImageCaptureFrameGrabber.h"
|
| #include "public/platform/WebMediaStreamTrack.h"
|
| +#include "wtf/PtrUtil.h"
|
|
|
| namespace blink {
|
|
|
| @@ -133,7 +134,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"));
|
|
|