base/android: Check for permissions in RadioUtils
Since we're using this now also from WebView, where the hosting app's permissions may not include those required for network/wifi state access, we need to check for permissions before we attempt to use RadioUtils. (Otherwise, thrown exceptions will cause crashes.) Fixed: 1144080 Change-Id: I9d39c951df79e10285effadd651d11bbe400a27d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2509517 Commit-Queue: Eric Seckler <eseckler@chromium.org> Auto-Submit: Eric Seckler <eseckler@chromium.org> Reviewed-by:Andrew Grieve <agrieve@chromium.org> Cr-Commit-Position: refs/heads/master@{#822700}
Showing
Please register or sign in to comment