• Mohamed Amir Yosef's avatar
    [Sync:USS] Fix permanent folders detection · 6f12dc09
    Mohamed Amir Yosef authored
    Permanent folders such as the "bookmark bar" are placed directly under
    the bookmarks root node.
    
    Before this CL:
    Permanent folders were assumed to have a specifics parent id.
    This is wrong, since the bookmark root node is synced and assigned a
    non-fixed id on the server. This caused dropping the mobile bookmarks
    folder when received as a remote creation.
    
    After this CL:
    Permanent nodes are detected via the existence of a unique server tag.
    
    Bug: 516866
    Change-Id: I237613ace3cc037febfb3f57257b24cc36522628
    Reviewed-on: https://chromium-review.googlesource.com/c/1257833Reviewed-by: default avatarMikel Astiz <mastiz@chromium.org>
    Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#596678}
    6f12dc09
bookmark_model_merger.cc 15 KB