Adopts GeolocationDemo to latest API changes.