commit | 22e75939c3d917e84c1ba12ca51efc07546b4d90 | [log] [tgz] |
---|---|---|
author | Alex Newcomer <newcomer@chromium.org> | Fri Apr 19 23:26:58 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Apr 19 23:26:58 2019 |
tree | 3708542cfc1f764add023e8b27be89451d69e416 | |
parent | e90ce07022122c04c312cd2f55c5ea02cef22a95 [diff] |
cros: Speculative fix for app movement crash The check can only be hit if item_count() is 1, but the to/from indices are not equal. If item_count() is 1, we shouldn't be doing a move anyways, so return early. This crash is likely occurring because a sync is coming in to delete the second item in a 2-item folder during the drag reorder. Bug: 937431 Change-Id: I2521f2e89ace9ca8c9218bfd050c04cc6bb89d2d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1575776 Auto-Submit: Alex Newcomer <newcomer@chromium.org> Reviewed-by: Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Xiyuan Xia <xiyuan@chromium.org> Cr-Commit-Position: refs/heads/master@{#652692}
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 .