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/1288169Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#600640}
Showing
Please register or sign in to comment