CrOS: 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 Review URL: http://codereview.chromium.org/8602009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110789 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment