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

Issue 23238005: sync: Remove ModelTypeInvalidationMap (Closed)

Created:
7 years, 4 months ago by rlarocque
Modified:
7 years, 3 months ago
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org
Visibility:
Public.

Description

sync: Remove ModelTypeInvalidationMap Removes the definition and all uses of ModelTypeInvalidationMap. The ModelTypeInvalidationMap was useful only for sync-related invalidations. Its existence made sense when sync was the only client for invalidations. Now that we have many invalidations clients, it makes sense to replace it with the more generic ObjectIdInvalidationMap. The reason for doing this now is that the ObjectIdInvalidationMap will soon be modified to be incompatible with the current definition of ModelTypeInvalidationMap. In order to support trickles it will be modified to allow it to contain several invalidations per ObjectId. Although it would have been possible to maintain compatibility by making a corresponding modification to ModelTypeInvalidationMap, there's really no point in having two invalidation map types. In the long run, it makes more sense to deprecate ModelTypeInvalidationMap. BUG=233437 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221025

Patch Set 1 #

Total comments: 20

Patch Set 2 : Rebase #

Patch Set 3 : Fixes for review comments #

Patch Set 4 : More review fixes #

Patch Set 5 : Fix sync_listen_notifications compile #

Patch Set 6 : Attempt to fix dependencies #

Patch Set 7 : Rebase + another attempt at fixing gyps #

Total comments: 5

Patch Set 8 : More gyp fixes #

Patch Set 9 : Sort entries in gyp files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -565 lines) Patch
M chrome/browser/sync/glue/session_change_processor.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_android.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M sync/engine/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M sync/engine/download.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/engine/download_unittest.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M sync/engine/sync_scheduler.h View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/engine/sync_scheduler_impl.h View 2 chunks +1 line, -2 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 3 chunks +14 lines, -13 lines 0 comments Download
M sync/internal_api/debug_info_event_listener.h View 1 chunk +1 line, -2 lines 0 comments Download
M sync/internal_api/debug_info_event_listener.cc View 1 2 3 2 chunks +12 lines, -6 lines 0 comments Download
M sync/internal_api/public/base/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
D sync/internal_api/public/base/model_type_invalidation_map.h View 1 chunk +0 lines, -53 lines 0 comments Download
D sync/internal_api/public/base/model_type_invalidation_map.cc View 1 chunk +0 lines, -78 lines 0 comments Download
D sync/internal_api/public/base/model_type_invalidation_map_test_util.h View 1 chunk +0 lines, -20 lines 0 comments Download
D sync/internal_api/public/base/model_type_invalidation_map_test_util.cc View 1 chunk +0 lines, -114 lines 0 comments Download
D sync/internal_api/public/base/model_type_invalidation_map_unittest.cc View 1 chunk +0 lines, -71 lines 0 comments Download
M sync/internal_api/public/base/model_type_test_util.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M sync/internal_api/public/base/model_type_test_util.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M sync/internal_api/public/engine/model_safe_worker.h View 2 chunks +0 lines, -8 lines 0 comments Download
M sync/internal_api/public/engine/model_safe_worker.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M sync/internal_api/public/engine/model_safe_worker_unittest.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 3 chunks +27 lines, -17 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M sync/notifier/invalidation_notifier_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/notifier/object_id_invalidation_map.h View 2 chunks +0 lines, -9 lines 0 comments Download
M sync/notifier/object_id_invalidation_map.cc View 1 chunk +0 lines, -31 lines 0 comments Download
M sync/notifier/object_id_invalidation_map_test_util.h View 1 chunk +1 line, -0 lines 0 comments Download
M sync/notifier/p2p_invalidator_unittest.cc View 5 chunks +10 lines, -11 lines 0 comments Download
M sync/sessions/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M sync/sessions/nudge_tracker.h View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/sessions/nudge_tracker.cc View 2 chunks +12 lines, -6 lines 0 comments Download
M sync/sessions/nudge_tracker_unittest.cc View 9 chunks +17 lines, -26 lines 0 comments Download
M sync/sessions/sync_session_unittest.cc View 2 chunks +0 lines, -20 lines 0 comments Download
M sync/sync.gyp View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -3 lines 0 comments Download
M sync/sync_internal_api.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M sync/sync_tests.gypi View 5 chunks +5 lines, -8 lines 0 comments Download
M sync/test/engine/fake_sync_scheduler.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/test/engine/fake_sync_scheduler.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/test/engine/mock_connection_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M sync/tools/sync_listen_notifications.cc View 1 2 3 4 2 chunks +5 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rlarocque
Here's part two of the trickles patches. There should be no significant behavioral changes in ...
7 years, 4 months ago (2013-08-23 20:03:48 UTC) #1
tim (not reviewing)
On 2013/08/23 20:03:48, rlarocque wrote: > Here's part two of the trickles patches. There should ...
7 years, 3 months ago (2013-08-27 17:49:03 UTC) #2
tim (not reviewing)
https://codereview.chromium.org/23238005/diff/1/sync/internal_api/debug_info_event_listener.cc File sync/internal_api/debug_info_event_listener.cc (right): https://codereview.chromium.org/23238005/diff/1/sync/internal_api/debug_info_event_listener.cc#newcode146 sync/internal_api/debug_info_event_listener.cc:146: ModelType type; nit - init to UNSPECIFIED. https://codereview.chromium.org/23238005/diff/1/sync/internal_api/debug_info_event_listener.cc#newcode147 sync/internal_api/debug_info_event_listener.cc:147: ...
7 years, 3 months ago (2013-08-28 00:12:59 UTC) #3
rlarocque
Patch updated. PTAL. https://codereview.chromium.org/23238005/diff/1/sync/internal_api/debug_info_event_listener.cc File sync/internal_api/debug_info_event_listener.cc (right): https://codereview.chromium.org/23238005/diff/1/sync/internal_api/debug_info_event_listener.cc#newcode146 sync/internal_api/debug_info_event_listener.cc:146: ModelType type; On 2013/08/28 00:13:00, timsteele ...
7 years, 3 months ago (2013-08-28 01:00:35 UTC) #4
tim (not reviewing)
LGTM with two comments below considered / addressed. https://codereview.chromium.org/23238005/diff/1/sync/internal_api/debug_info_event_listener.cc File sync/internal_api/debug_info_event_listener.cc (right): https://codereview.chromium.org/23238005/diff/1/sync/internal_api/debug_info_event_listener.cc#newcode147 sync/internal_api/debug_info_event_listener.cc:147: if ...
7 years, 3 months ago (2013-08-28 01:11:07 UTC) #5
rlarocque
https://codereview.chromium.org/23238005/diff/1/sync/internal_api/debug_info_event_listener.cc File sync/internal_api/debug_info_event_listener.cc (right): https://codereview.chromium.org/23238005/diff/1/sync/internal_api/debug_info_event_listener.cc#newcode147 sync/internal_api/debug_info_event_listener.cc:147: if (ObjectIdToRealModelType(it->first, &type)) { On 2013/08/28 01:11:07, timsteele wrote: ...
7 years, 3 months ago (2013-08-28 17:50:22 UTC) #6
rlarocque
+rsimha The trybots seem to like the latest gyp changes. Raghu, do you see any ...
7 years, 3 months ago (2013-08-30 20:47:43 UTC) #7
Raghu Simha
LGTM after the comments below are addressed one way or another. https://codereview.chromium.org/23238005/diff/28001/sync/engine/sync_scheduler.h File sync/engine/sync_scheduler.h (right): ...
7 years, 3 months ago (2013-08-30 22:12:42 UTC) #8
rlarocque
https://codereview.chromium.org/23238005/diff/28001/sync/engine/sync_scheduler.h File sync/engine/sync_scheduler.h (right): https://codereview.chromium.org/23238005/diff/28001/sync/engine/sync_scheduler.h#newcode16 sync/engine/sync_scheduler.h:16: #include "sync/notifier/object_id_invalidation_map.h" On 2013/08/30 22:12:43, Raghu Simha wrote: > ...
7 years, 3 months ago (2013-08-30 23:28:08 UTC) #9
Raghu Simha
https://codereview.chromium.org/23238005/diff/28001/sync/sync.gyp File sync/sync.gyp (right): https://codereview.chromium.org/23238005/diff/28001/sync/sync.gyp#newcode71 sync/sync.gyp:71: 'sync_proto', nit: In case you haven't already landed this, ...
7 years, 3 months ago (2013-08-30 23:35:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/23238005/24002
7 years, 3 months ago (2013-09-03 17:37:04 UTC) #11
commit-bot: I haz the power
7 years, 3 months ago (2013-09-03 21:20:58 UTC) #12
Message was sent while issue was closed.
Change committed as 221025

Powered by Google App Engine
This is Rietveld 408576698