| 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..2888e27ca62e1521e4ae052696f5cb048a5c1417 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<media::mojom::blink::PhotoCapabilitiesPtr>(&ImageCapture::onCapabilities, this, resolver)));
|
| + m_service->GetCapabilities(m_streamTrack->component()->source()->id(), createBaseCallback(bind<media::mojom::blink::PhotoCapabilitiesPtr>(&ImageCapture::onCapabilities, wrapCrossThreadPersistent(this), wrapCrossThreadPersistent(resolver))));
|
| return promise;
|
| }
|
|
|
| @@ -117,7 +117,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<String, mojo::WTFArray<uint8_t>>(&ImageCapture::onTakePhoto, this, resolver)));
|
| + m_service->TakePhoto(m_streamTrack->component()->source()->id(), createBaseCallback(bind<String, mojo::WTFArray<uint8_t>>(&ImageCapture::onTakePhoto, wrapCrossThreadPersistent(this), wrapCrossThreadPersistent(resolver))));
|
| return promise;
|
| }
|
|
|
|
|