SelectFileDialogExtension: Obtain Profile from ProfileManager in ChromeOS...
SelectFileDialogExtension: Obtain Profile from ProfileManager in ChromeOS when WebContents is not available. PROBLEM: Close all browser windows an try opening a SelectFileDialog from a non-browser window (e.g. ARC app window). Chrome crashes at https://cs.chromium.org/chromium/src/chrome/browser/ui/views/select_file_dialog_extension.cc?q=CHECK..web_contents$&g=0&l=161 SOLUTION: Use ProfileManager::GetActiveUserProfile() for obtaining Profile in ChromeOS when WebContents is not available. WebContents is not essential for creating a dialog (at least in ChromeOS). BUG=b:119593284 TEST=Manually open SelectFileDialog from an ARC app after closing all browser windows Change-Id: Ie3039b9287ad9c8a9d8444e7f7812aedded14b43 Reviewed-on: https://chromium-review.googlesource.com/c/1337144 Commit-Queue: Satoshi Niwa <niwa@chromium.org> Reviewed-by:Sam McNally <sammc@chromium.org> Reviewed-by:
Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#609587}
Showing
Please register or sign in to comment