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

Issue 2935583002: [Sync] Implement support for untracking new entities (Closed)

Created:
3 years, 6 months ago by Gang Wu
Modified:
3 years, 6 months ago
Reviewers:
pavely
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Implement support for untracking new entities This is a follow up CL for https://codereview.chromium.org/2915763005. The CL above let processor can obtain storage key during bridge merge/apply, but some entities maybe expired and bridge do not want to persist them, so this CL add a function called UntrackEntity in processor to let processor to remove tracker for those entities. BUG=719570 Review-Url: https://codereview.chromium.org/2935583002 Cr-Commit-Position: refs/heads/master@{#480096} Committed: https://chromium.googlesource.com/chromium/src/+/20065cfbc168c8a6d919196499c7ac484351c5d8

Patch Set 1 #

Total comments: 12

Patch Set 2 : pavely review #

Total comments: 8

Patch Set 3 : add a new GenerateUpdateData #

Total comments: 2

Patch Set 4 : add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -4 lines) Patch
M components/sync/model/fake_model_type_change_processor.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/model/fake_model_type_change_processor.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M components/sync/model/fake_model_type_sync_bridge.h View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M components/sync/model/fake_model_type_sync_bridge.cc View 1 2 3 chunks +11 lines, -2 lines 0 comments Download
M components/sync/model/model_type_change_processor.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M components/sync/model_impl/shared_model_type_processor_unittest.cc View 1 2 3 chunks +35 lines, -2 lines 0 comments Download
M components/sync/test/engine/mock_model_type_worker.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M components/sync/test/engine/mock_model_type_worker.cc View 1 2 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (35 generated)
Gang Wu
PTAL
3 years, 6 months ago (2017-06-12 15:19:07 UTC) #12
pavely
https://codereview.chromium.org/2935583002/diff/20001/components/sync/model/fake_model_type_sync_bridge.cc File components/sync/model/fake_model_type_sync_bridge.cc (right): https://codereview.chromium.org/2935583002/diff/20001/components/sync/model/fake_model_type_sync_bridge.cc#newcode58 components/sync/model/fake_model_type_sync_bridge.cc:58: const char FakeModelTypeSyncBridge::kUntrackEntityKeyPrefix[] = "untrack"; You are setting up ...
3 years, 6 months ago (2017-06-13 23:09:39 UTC) #13
Gang Wu
updated. https://codereview.chromium.org/2935583002/diff/20001/components/sync/model/fake_model_type_sync_bridge.cc File components/sync/model/fake_model_type_sync_bridge.cc (right): https://codereview.chromium.org/2935583002/diff/20001/components/sync/model/fake_model_type_sync_bridge.cc#newcode58 components/sync/model/fake_model_type_sync_bridge.cc:58: const char FakeModelTypeSyncBridge::kUntrackEntityKeyPrefix[] = "untrack"; On 2017/06/13 23:09:39, ...
3 years, 6 months ago (2017-06-14 18:59:31 UTC) #26
pavely
https://codereview.chromium.org/2935583002/diff/80001/components/sync/model/fake_model_type_sync_bridge.cc File components/sync/model/fake_model_type_sync_bridge.cc (right): https://codereview.chromium.org/2935583002/diff/80001/components/sync/model/fake_model_type_sync_bridge.cc#newcode216 components/sync/model/fake_model_type_sync_bridge.cc:216: if (key_to_ignore_.find(storage_key) != key_to_ignore_.end()) { There are some helper ...
3 years, 6 months ago (2017-06-15 19:35:33 UTC) #27
Gang Wu
updated, PTAL https://codereview.chromium.org/2935583002/diff/80001/components/sync/model/fake_model_type_sync_bridge.cc File components/sync/model/fake_model_type_sync_bridge.cc (right): https://codereview.chromium.org/2935583002/diff/80001/components/sync/model/fake_model_type_sync_bridge.cc#newcode216 components/sync/model/fake_model_type_sync_bridge.cc:216: if (key_to_ignore_.find(storage_key) != key_to_ignore_.end()) { On 2017/06/15 ...
3 years, 6 months ago (2017-06-15 22:01:18 UTC) #30
pavely
lgtm https://codereview.chromium.org/2935583002/diff/100001/components/sync/test/engine/mock_model_type_worker.h File components/sync/test/engine/mock_model_type_worker.h (right): https://codereview.chromium.org/2935583002/diff/100001/components/sync/test/engine/mock_model_type_worker.h#newcode84 components/sync/test/engine/mock_model_type_worker.h:84: UpdateResponseData GenerateUpdateData( Add comment explaining which version_offset and ...
3 years, 6 months ago (2017-06-15 22:38:33 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2935583002/120001
3 years, 6 months ago (2017-06-16 16:35:28 UTC) #40
commit-bot: I haz the power
Committed patchset #4 (id:120001) as https://chromium.googlesource.com/chromium/src/+/20065cfbc168c8a6d919196499c7ac484351c5d8
3 years, 6 months ago (2017-06-16 17:52:13 UTC) #43
Gang Wu
3 years, 6 months ago (2017-06-16 17:56:17 UTC) #44
Message was sent while issue was closed.
https://codereview.chromium.org/2935583002/diff/100001/components/sync/test/e...
File components/sync/test/engine/mock_model_type_worker.h (right):

https://codereview.chromium.org/2935583002/diff/100001/components/sync/test/e...
components/sync/test/engine/mock_model_type_worker.h:84: UpdateResponseData
GenerateUpdateData(
On 2017/06/15 22:38:32, pavely wrote:
> Add comment explaining which version_offset and encryption key name is used.

Done.

Powered by Google App Engine
This is Rietveld 408576698