| 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 933bcea61d8dbc3721c823af526d30656117e8b6..7912642e501e12e987249dde9f85b49503772f25 100644
|
| --- a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
|
| +++ b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
|
| @@ -430,7 +430,7 @@ void Geolocation::requestPermission()
|
| mojom::blink::PermissionName::GEOLOCATION,
|
| getExecutionContext()->getSecurityOrigin()->toString(),
|
| UserGestureIndicator::processingUserGesture(),
|
| - createBaseCallback(bind(&Geolocation::onGeolocationPermissionUpdated, this)));
|
| + createBaseCallback(bind(&Geolocation::onGeolocationPermissionUpdated, wrapPersistent(this))));
|
| }
|
|
|
| void Geolocation::makeSuccessCallbacks()
|
| @@ -503,7 +503,7 @@ void Geolocation::updateGeolocationServiceConnection()
|
|
|
| void Geolocation::queryNextPosition()
|
| {
|
| - m_geolocationService->QueryNextPosition(createBaseCallback(bind(&Geolocation::onPositionUpdated, this)));
|
| + m_geolocationService->QueryNextPosition(createBaseCallback(bind(&Geolocation::onPositionUpdated, wrapPersistent(this))));
|
| }
|
|
|
| void Geolocation::onPositionUpdated(mojom::blink::GeopositionPtr position)
|
|
|