• Jun Cai's avatar
    Grant generic sensor permission for Android WebView · b6c4e590
    Jun Cai authored
    This CL adds code to grant generic sensor permission for Android
    WebView so that the sensors needed by device motion and orientation can
    be obtained from the generic sensor provider.
    
    Note: This will not allow Android WebView to have access to all the
    sensors that the generic sensor API provides since
    SensorProviderImpl::GetSensor() is still guarded by
    features::kGenericSensorExtraClasses flag. There is no new sensors
    permission granted, and the sensors that are exposed on WebView by
    this CL are those sensors that are already available on WebView
    previously which are used to implement device motion/orientation
    events.
    
    Bug: 779443
    Change-Id: I1405e54213bb07d1d781181e473fc77e89bb12ed
    Reviewed-on: https://chromium-review.googlesource.com/759240
    Commit-Queue: Jun Cai <juncai@chromium.org>
    Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
    Reviewed-by: default avatarTao Bai <michaelbai@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#515285}
    b6c4e590
aw_permission_manager.cc 19.7 KB