This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DesktopMediaPickerViews to handle background parent_web_contents
After r283702 DesktopMediaPickerViews is getting parent_web_contents even when it corresponds to a background extension page. DesktopMediaPickerViews was always trying to create a modal dialog when web_contents is specified, and that doesn't work for background pages. Now it explicitly checks if the web_contents is a background page and in that case shows the picker in a separate window. Also updated example for desktop capture API to make it easier to test this scenario. BUG=402579 Review URL: https://codereview.chromium.org/501713002 Cr-Commit-Position: refs/heads/master@{#292055} (cherry picked from commit 71b32fc) TBR=sergeyu@chromium.org Review URL: https://codereview.chromium.org/522483007 Cr-Commit-Position: refs/branch-heads/2125@{#179} Cr-Branched-From: b68026d-refs/heads/master@{#290040}
- Loading branch information
1 parent
a1cc1f3
commit 6debe58
Showing
6 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters