Bug Fix: Desktop Capture Picker Not Modal

When the chooseDesktopMedia is initiated from a background Javascript, the picker is not modal, and thus there is a chance the picker is totally covered by the main window, and hard for the user to find it out.

This CL forces the parent of the picker window to be the most recent active browser window in case of a background Javascript. Then the picker will be modal.

BUG=656420

Review-Url: https://codereview.chromium.org/2428383008
Cr-Commit-Position: refs/heads/master@{#427797}
1 file changed