• Jordan Bayles's avatar
    Show Screen Recording prompt on Mac 10.15+ · 36deecf7
    Jordan Bayles authored
    Currently, in Chrome when trying to cast the screen we check for
    permission and tell the user to check System settings if we aren't
    allowed to cast the screen.  However, apps don't show up in System
    settings until the user has already approved or denied permission for
    them through a modal dialog that only appears if you try to capture a
    stream in your application without checking permission.
    
    This patch adds a call to CGDisplayStreamCreate in a new method in
    permissions_utils.h,  TryPromptUserForScreenCapture.
    
    Bug: 1139695
    Change-Id: I719aa6fb4188e723faa1fee3d3b51243edb0059e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2495824
    Commit-Queue: Jordan Bayles <jophba@chromium.org>
    Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
    Reviewed-by: default avatarTakumi Fujimoto <takumif@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#821528}
    36deecf7
permissions_utils.mm 2.47 KB