-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Tab Group Sync] Fix applying unique positions
Unique positions are part of sync metadata, and hence during remote updates new values (including deletions) are applied before changes to the model in ApplyIncrementalSyncChanges(). This means that we should not rely on the order in the model while applying remote updates. The simplest approach would be to reorder all tabs in the groups which contain updated or new tabs. It would require additional observer method to notify UI about reordering in the model. This CL implements instead an approach to apply changes one by one by ignoring tabs which are to be updated. This results in the same result because every individual update or new tab is compared against the positions which are already processed and are in the correct order. Integration tests will be added in crrev.com/c/5839525. Bug: 351357559 Change-Id: I0887fa1c83930f6ce47247f1ff112c5a88c02e35 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5842231 Reviewed-by: Mikel Astiz <mastiz@chromium.org> Commit-Queue: Rushan Suleymanov <rushans@google.com> Cr-Commit-Position: refs/heads/main@{#1354517}
- Loading branch information
Showing
3 changed files
with
261 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.