<input type=file>: Fix a crash in ChromeClientImpl::DidCompleteFileChooser().
This is a regression by http://crrev.com/579748. If we request opening multiple file choosers, and one of the corresponding blink::FileChooser object is deallocated before calling its OpenFileChooser(), ChromeClientImpl had a stale pointer. ChromeClientImpl should have Vector<scoped_refptr<FileChooser>> instead of Vector<FileChooser*>. Bug: 877269 Change-Id: I296e6ac83b858e1b74fecff87e7a2fa7f9b96765 Reviewed-on: https://chromium-review.googlesource.com/1188009Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#585753}
Showing
Please register or sign in to comment