• Rushan Suleymanov's avatar
    [Sync] Refactor model type processor: entity tracker lifetime · 83dccf5d
    Rushan Suleymanov authored
    Make entity tracker's lifetime same as initial sync done. The tracker
    won't exist if we still have no data from the server.
    
    In this patch also authentication_account_id is not set explicitly for
    metadata coming from ModelReadyToSync. The behavior for this field
    becomes similar to cache_guid. If authentication_account_id differs from
    activation request then the metadata will be reset. Generally it should
    not affect anything.
    
    In the next patch unittests will be added.
    
    Bug: 947044
    Change-Id: I34a75006d1f31888f8ca485a94538b6dd98923c1
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2038733
    Commit-Queue: Rushan Suleymanov <rushans@google.com>
    Reviewed-by: default avatarMikel Astiz <mastiz@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#750920}
    83dccf5d
session_sync_bridge_unittest.cc 62.5 KB