[Android Permissions] Return bool from onRequestPermissionsResult
- Renamed onRequestPermissionsResult -> handlePermissionResult in the AndroidPermissionDelegate interface; this avoids a name-clash with the method on FragmentActivity, hopefully making it easier to reason about what is calling what. - Made handlePermissionResult return a boolean indicating whether the result was handled. - *Actually return false sometimes instead of always true from ActivityAndroidPermissionDelegate/ActivityWindowAndroid* <-- this is the only bit that actually might change behaviour. - Made WindowAndroid an AndroidPermissionDelegate itself so it's now a proper decorator pattern - it had most of the methods already and this will allow easier unit testing. R=tedchoc@chromium.org Change-Id: I3787529184ce1acafd3d71d6f511941478026ecc Reviewed-on: https://chromium-review.googlesource.com/1105042 Commit-Queue: Anita Woodruff <awdf@chromium.org> Reviewed-by:Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/master@{#568623}
Showing
Please register or sign in to comment