Fix a crash on clicking "Load unpacked extension" multiple times
SelectFile() is getting called more than once for the same window
and causing NOTREACHED() failure on linux, since it tries to re-add
the observer.
To fix the failure, this patch adds a check that does an early-return
if the select file dialog is currently being shown to the specified
window.
BUG=432783
Review URL: https://codereview.chromium.org/772983002
Cr-Commit-Position: refs/heads/master@{#308113}
1 file changed