Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Issue 298503002: sync: Enable typed tombstones commits (Closed)

Created:
6 years, 7 months ago by rlarocque
Modified:
6 years, 7 months ago
Reviewers:
haitaol1, albertb
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, albertb+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: Enable typed tombstones commits 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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271763

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add tests for AddDefaultFieldValues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -1 line) Patch
M sync/engine/commit_util.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M sync/engine/directory_commit_contribution_unittest.cc View 3 chunks +103 lines, -0 lines 0 comments Download
M sync/protocol/sync.proto View 1 chunk +1 line, -1 line 0 comments Download
M sync/syncable/model_type_unittest.cc View 1 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
rlarocque
Please review.
6 years, 7 months ago (2014-05-19 20:26:29 UTC) #1
haitaol1
https://codereview.chromium.org/298503002/diff/1/sync/engine/commit_util.cc File sync/engine/commit_util.cc (right): https://codereview.chromium.org/298503002/diff/1/sync/engine/commit_util.cc#newcode187 sync/engine/commit_util.cc:187: AddDefaultFieldValue(meta_entry.GetModelType(), Will it cause parse failure on server if ...
6 years, 7 months ago (2014-05-19 21:59:11 UTC) #2
albertb
https://codereview.chromium.org/298503002/diff/1/sync/engine/commit_util.cc File sync/engine/commit_util.cc (right): https://codereview.chromium.org/298503002/diff/1/sync/engine/commit_util.cc#newcode187 sync/engine/commit_util.cc:187: AddDefaultFieldValue(meta_entry.GetModelType(), On 2014/05/19 21:59:12, haitaol1 wrote: > Will it ...
6 years, 7 months ago (2014-05-19 22:02:57 UTC) #3
rlarocque
https://codereview.chromium.org/298503002/diff/1/sync/engine/commit_util.cc File sync/engine/commit_util.cc (right): https://codereview.chromium.org/298503002/diff/1/sync/engine/commit_util.cc#newcode187 sync/engine/commit_util.cc:187: AddDefaultFieldValue(meta_entry.GetModelType(), On 2014/05/19 21:59:12, haitaol1 wrote: > Will it ...
6 years, 7 months ago (2014-05-19 22:14:57 UTC) #4
haitaol1
https://codereview.chromium.org/298503002/diff/1/sync/engine/commit_util.cc File sync/engine/commit_util.cc (right): https://codereview.chromium.org/298503002/diff/1/sync/engine/commit_util.cc#newcode187 sync/engine/commit_util.cc:187: AddDefaultFieldValue(meta_entry.GetModelType(), Can you add a test that calls AddDefaultFieldValue ...
6 years, 7 months ago (2014-05-19 22:39:05 UTC) #5
rlarocque
PTAL. https://codereview.chromium.org/298503002/diff/1/sync/engine/commit_util.cc File sync/engine/commit_util.cc (right): https://codereview.chromium.org/298503002/diff/1/sync/engine/commit_util.cc#newcode187 sync/engine/commit_util.cc:187: AddDefaultFieldValue(meta_entry.GetModelType(), On 2014/05/19 22:39:05, haitaol1 wrote: > Can ...
6 years, 7 months ago (2014-05-19 23:51:28 UTC) #6
haitaol1
lgtm
6 years, 7 months ago (2014-05-20 17:24:11 UTC) #7
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-05-20 17:30:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/298503002/20001
6 years, 7 months ago (2014-05-20 17:31:11 UTC) #9
commit-bot: I haz the power
6 years, 7 months ago (2014-05-20 21:42:57 UTC) #10
Message was sent while issue was closed.
Change committed as 271763

Powered by Google App Engine
This is Rietveld 408576698