geolocation: Use high accuracy in sensors-only mode
The FusedLocationProvider API determines which location providers to use based on a priority mode specified in the API call. In PRIORITY_BALANCED_POWER_ACCURACY mode, the request will never cause power-intensive providers like GPS to be used unless another app requests it. Instead, the network provider is preferred. If Android is configured to disable network location providers but to enable sensors (like GPS), then elevate the priority of the request to improve the likelihood that GPS sensors will be used to acquire a location. BUG=620003 Change-Id: Ia11b7d367b0bdf89631a3e0ccfc696daf1d238a3 Reviewed-on: https://chromium-review.googlesource.com/1182289 Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Reviewed-by:Ted Choc <tedchoc@chromium.org> Reviewed-by:
Miguel Casas <mcasas@chromium.org> Cr-Commit-Position: refs/heads/master@{#590496}
Showing
Please register or sign in to comment