Reland "ES6 styles to onVolumeInfoListUpdated_ and setupCurrentDirectory_"
This reverts commit 1eeaf562. Reason for revert: The culprit CL is this one here: crrev.com/c/1282517 which is already reverted: crrev.com/c/1287729. Original change's description: > Revert "ES6 styles to onVolumeInfoListUpdated_ and setupCurrentDirectory_" > > This reverts commit 0ad9fe79. > > Reason for revert: speculative revert, will revert the revert if not a root cause. > > Bunch of Video/file-manager related tests started to fail: > OpenVideoFiles/FilesAppBrowserTest.Test/videoOpenDrive_DriveFs > OpenVideoFiles/FilesAppBrowserTest.Test/videoOpenDownloads > VideoPlayerBrowserTest.OpenSingleVideoOnDrive > VideoPlayerBrowserTest.OpenSingleVideoOnDownloads > VideoPlayerBrowserTest.ClickControlButtons > OpenVideoFiles/FilesAppBrowserTest.Test/videoOpenDownloads_GuestMode > VideoPlayerBrowserTestInGuestMode.OpenSingleVideoOnDownloads > VideoPlayerBrowserTest.CheckInitialElements > OpenVideoFiles/FilesAppBrowserTest.Test/videoOpenDrive > > Failures: > https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Linux%20ChromiumOS%20MSan%20Tests/9115 > https://ci.chromium.org/p/chromium/builders/luci.chromium.ci/Linux%20ChromiumOS%20MSan%20Tests/9116 > > Original change's description: > > ES6 styles to onVolumeInfoListUpdated_ and setupCurrentDirectory_ > > > > Appliy ES6 features to the DirectoryModel.onVolumeInfoListUpdated_ and > > FileManager.setupCurrentDirectory_. > > > > ES6 styles: > > - Change var to const or let. > > - Change anonymous functions+bind(this) to arrow functions. > > > > Remove a TODO that linked to a closed bug. > > > > Move comment to be before queue.run() to match the style of the > > previous lines. > > > > Apply the formatting from git cl format, which is slightly uglier, but > > at least automatic. :-) > > > > Test: No change in behaviour. > > Change-Id: I5564263d44f8639d97fc86d7add5a59e8938be6d > > Reviewed-on: https://chromium-review.googlesource.com/c/1286239 > > Reviewed-by: Joel Hockey <joelhockey@chromium.org> > > Commit-Queue: Luciano Pacheco <lucmult@chromium.org> > > Cr-Commit-Position: refs/heads/master@{#600312} > > TBR=joelhockey@chromium.org,lucmult@chromium.org > > Change-Id: I5f4aa388d2b88c5914c705c71b0fcc70904a42fe > No-Presubmit: true > No-Tree-Checks: true > No-Try: true > Reviewed-on: https://chromium-review.googlesource.com/c/1288169 > Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> > Commit-Queue: Kinuko Yasuda <kinuko@chromium.org> > Cr-Commit-Position: refs/heads/master@{#600640} TBR=kinuko@chromium.org,joelhockey@chromium.org,lucmult@chromium.org Change-Id: I7ce79f80a47367a2e5547e1bb3d5b227c40e77dd No-Presubmit: true No-Tree-Checks: true No-Try: true Reviewed-on: https://chromium-review.googlesource.com/c/1288091Reviewed-by:Luciano Pacheco <lucmult@chromium.org> Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#600646}
Showing
Please register or sign in to comment