Add CHECK to detect local bookmark GUID duplicates
BookmarkModel is expected to have a unique GUID per bookmark. BookmarkModel does not currently have [D]CHECKs to enforce this, but it does get verified upon loading of bookmarks from storage. Upon sync's initial merge, the presence of duplicate GUIDs locally is specially problematic, in particular if GUID-based merging logic is enabled (currently disabled by default). This is because local nodes may end up untracked, which violates the invariant for bookmark sync to work (and may later run into [D]CHECKs). Change-Id: I76f6139ae341fe1ed4e1f37cc37d96704be0910d Bug: 978430 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2030764 Auto-Submit: Mikel Astiz <mastiz@chromium.org> Reviewed-by:Mohamed Amir Yosef <mamir@chromium.org> Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org> Commit-Queue: Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#736866}
Showing
Please register or sign in to comment