DescriptionCrOS: Fix file_watchers_ DCHECK in SelectFileDialogExtensionBrowserTest
The CrOS file picker closes the dialog immediately, without running the page unload handler. This meant we were leaking file watcher objects, causing a DCHECK in SelectFileDialogExtensionBrowserTest. Fixed by calling it manually when needed.
Also, we need to clean up the current directory's watcher, because we don't have a directory-change event in the unload handler that we can use to look up the directory path.
BUG=104692, 103491
TEST=browser_tests, also verify you can open a file with control-O
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110789
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|