commit | 5cd8c123e452c0b76fbbcaf53e82d86ca7d54930 | [log] [tgz] |
---|---|---|
author | Luciano Pacheco <lucmult@chromium.org> | Fri Oct 12 00:07:24 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 12 00:07:24 2018 |
tree | a2c6f29ea17fcff564d73a21be3040b92364d3f0 | |
parent | 07535c1a3fa02420e25c51fe9ce52d926da19bc6 [diff] |
Files app: Select My files when there are no volumes Make Files app select "My files" when there are no available volumes, this to allow Files app to behave properly when volumes subsequently become available. Change DirectoryModel.onVolumeInfoListUpdated_ method to check for non-null |displayRoot| before trying to change to |displayRoot|. This fixes the error "Cannot read property 'getParent' of null" when Drive volume becomes available before Downloads volume, which is the default volume/root. Change FakeDriveFs to unbind the two mojo bindings if they're bound, so DriveFsTestVolume can re-mount itself. Test: browser_tests --gtest_filter="*/fileDisplayWithoutVolumesThenMount*" Bug: 893161, 884967 Change-Id: Ic813b25261530495c11c9f641a92f6e07f883702 Reviewed-on: https://chromium-review.googlesource.com/c/1272418 Reviewed-by: Noel Gordon <noel@chromium.org> Reviewed-by: Sam McNally <sammc@chromium.org> Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#599026}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .