| 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 299b6daefbed7baa1d258713e004a8bc2cee8dae..154242fa802a259d79df02132e7cd9dae51b728e 100644
|
| --- a/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
|
| +++ b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
|
| @@ -92,7 +92,7 @@ ScriptPromise ImageCapture::getPhotoCapabilities(ScriptState* scriptState, Excep
|
| // m_streamTrack->component()->source()->id() is the renderer "name" of the camera;
|
| // TODO(mcasas) consider sending the security origin as well:
|
| // scriptState->getExecutionContext()->getSecurityOrigin()->toString()
|
| - m_service->GetCapabilities(m_streamTrack->component()->source()->id(), createBaseCallback(bind(&ImageCapture::onCapabilities, this, resolver)));
|
| + m_service->GetCapabilities(m_streamTrack->component()->source()->id(), createBaseCallback(bind(&ImageCapture::onCapabilities, wrapPersistent(this), wrapPersistent(resolver))));
|
| return promise;
|
| }
|
|
|
| @@ -119,7 +119,7 @@ ScriptPromise ImageCapture::setOptions(ScriptState* scriptState, const PhotoSett
|
| if (settings->has_zoom)
|
| settings->zoom = photoSettings.zoom();
|
|
|
| - m_service->SetOptions(m_streamTrack->component()->source()->id(), std::move(settings), createBaseCallback(bind(&ImageCapture::onSetOptions, this, resolver)));
|
| + m_service->SetOptions(m_streamTrack->component()->source()->id(), std::move(settings), createBaseCallback(bind(&ImageCapture::onSetOptions, wrapPersistent(this), wrapPersistent(resolver))));
|
| return promise;
|
| }
|
|
|
| @@ -144,7 +144,7 @@ ScriptPromise ImageCapture::takePhoto(ScriptState* scriptState, ExceptionState&
|
| // m_streamTrack->component()->source()->id() is the renderer "name" of the camera;
|
| // TODO(mcasas) consider sending the security origin as well:
|
| // scriptState->getExecutionContext()->getSecurityOrigin()->toString()
|
| - m_service->TakePhoto(m_streamTrack->component()->source()->id(), createBaseCallback(bind(&ImageCapture::onTakePhoto, this, resolver)));
|
| + m_service->TakePhoto(m_streamTrack->component()->source()->id(), createBaseCallback(bind(&ImageCapture::onTakePhoto, wrapPersistent(this), wrapPersistent(resolver))));
|
| return promise;
|
| }
|
|
|
|
|