| Index: third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
|
| diff --git a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
|
| index e6e48acb49603b7a781636bea81e181b75ce3604..b5ce7085d1f609d992e01504407cdff4343e29a6 100644
|
| --- a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
|
| +++ b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
|
| @@ -428,7 +428,7 @@ void Geolocation::requestPermission()
|
| m_permissionService->RequestPermission(
|
| mojom::blink::PermissionName::GEOLOCATION,
|
| getExecutionContext()->getSecurityOrigin()->toString(),
|
| - createBaseCallback(bind<mojom::blink::PermissionStatus>(&Geolocation::onGeolocationPermissionUpdated, this)));
|
| + createBaseCallback(bind<mojom::blink::PermissionStatus>(&Geolocation::onGeolocationPermissionUpdated, wrapCrossThreadPersistent(this))));
|
| }
|
|
|
| void Geolocation::makeSuccessCallbacks()
|
| @@ -501,7 +501,7 @@ void Geolocation::updateGeolocationServiceConnection()
|
|
|
| void Geolocation::queryNextPosition()
|
| {
|
| - m_geolocationService->QueryNextPosition(createBaseCallback(bind<mojom::blink::GeopositionPtr>(&Geolocation::onPositionUpdated, this)));
|
| + m_geolocationService->QueryNextPosition(createBaseCallback(bind<mojom::blink::GeopositionPtr>(&Geolocation::onPositionUpdated, wrapCrossThreadPersistent(this))));
|
| }
|
|
|
| void Geolocation::onPositionUpdated(mojom::blink::GeopositionPtr position)
|
|
|