• Alex Cooper's avatar
    Add Permissions Request for WebXr Sessions · 1cf1a551
    Alex Cooper authored
    This adds code (behind a flag) to allow WebXr sessions to determine the
    needed permissions and prompt the user for them on both Desktop and
    Android.
    
    In order to properly link to the PermissionManager and related classes,
    VRServiceImpl and the classes that call into it needed to be moved into
    the chrome/browser Build target.  Given that this target depends on
    vr_common (where these other classes are), vr_common couldn't depend on
    it, or else it would introduce a circular dependency. Therefore, these
    files were moved into chrome/browser's target, which seemed to be common
    for other classes that relied on PermissionManager.
    
    vr_headset.png's generated from source SVG in crbug.com/912203 (which is
    the source of the currently checked-in vr_headset.icon)
    
    Note that strings are currently placeholders.
    
    Showing the permission status in the page info bubble and site settings
    will be done in future changes.
    
    Bug: 1033592
    Change-Id: I5be7f8b6e62c00fcb11ddeb6c2410720ec9c1bf0
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1992508
    Commit-Queue: Alexander Cooper <alcooper@chromium.org>
    Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
    Reviewed-by: default avatarBalazs Engedy <engedy@chromium.org>
    Reviewed-by: default avatarMounir Lamouri <mlamouri@chromium.org>
    Reviewed-by: default avatarKlaus Weidner <klausw@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#731726}
    1cf1a551