Chromium Code Reviews
Description[Sync] Support commit only types.
The main differences of commit only types is that they do not have a
progress marker, they use very few metadata fields of SyncEntity, they
do not perform GetUpdates, and they delete themselves after commit
confirmation. Also only supposed on USS/NonBlocking path.
This CL updates internal sync logic to facilitate commit only types.
With these changes user events should be entirely functional on the
client. Can specify the flag --enable-features=SyncUserEvents and
existing translate integration will start emitting.
The difference between using the static CommitOnlyTypes.Has(...), vs a
private boolean in worker vs processor is unfortunate. I think the
CommitOnlyTypes.Has(...) approach is better whenever something has the
model type, however, current unit tests are tightly coupled with
PREFERENCES, which is why I created the |commit_only_| field.
BUG=719041
Review-Url: https://codereview.chromium.org/2916133002
Cr-Commit-Position: refs/heads/master@{#477350}
Committed: https://chromium.googlesource.com/chromium/src/+/c15b61bdf8133f14d7f715ee6e0dcc5ab65db57c
Patch Set 1 #Patch Set 2 : Self review. #Patch Set 3 : Added more checks to syncer unittest. #
Total comments: 10
Patch Set 4 : Updates for pnoland. #
Total comments: 4
Patch Set 5 : More updates for pnoland. #Patch Set 6 : Undo unittest refactor for GetUpdatesCounters that checks commit data. #Patch Set 7 : Rebase #Patch Set 8 : Rebase again. #Messages
Total messages: 40 (27 generated)
|