Work around a location-related crash on OnePlus2 devices.
On OnePlus2 Lollipop devices, the network location provider incorrectly requires the FINE_LOCATION permission, instead of just the COARSE_LOCATION permission. Those devices also allow users to disable location on a per-app basis, which leads to crashes when users disable fine location for Chrome, but not coarse location. This CL avoids a crash by checking both permissions on pre-M devices. BUG=580733 Review URL: https://codereview.chromium.org/1626403003 Cr-Commit-Position: refs/heads/master@{#371409}
Showing
Please register or sign in to comment