• rlarocque@chromium.org's avatar
    sync: Enable typed tombstones commits · e5cee937
    rlarocque@chromium.org authored
    Modifies commit logic to include the model type of items in commit
    requests.  The model type is implicitly specified by the presence of
    a sub-message in the EntitySpecifics field.
    
    Prior to this commit, only bookmarks would populate the sync entities on
    commit.  The special case for bookmarks was introduced recently, in
    r265587.
    
    Unlike the bookmarks case, the non-bookmark items send up only enough
    specifics to identify the model type.  The rest of the specifics are not
    set.
    
    This commit also adds some tests of the bookmark and non-bookmark
    deletion request behaviors.
    
    BUG=365752,373859
    
    Review URL: https://codereview.chromium.org/298503002
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271763 0039d316-1c4b-4281-b951-d872f2087c98
    e5cee937
commit_util.cc 17.4 KB