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

Issue 10837214: Refactor ModelTypePayloadMap and ObjectIdPayloadMap to StateMaps. (Closed)

Created:
8 years, 4 months ago by dcheng
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), pam+watch_chromium.org, akalin, tim (not reviewing)
Visibility:
Public.

Description

Refactor ModelTypePayloadMap and ObjectIdPayloadMap to StateMaps. This lays the groundwork for allowing us to pass ack handles for object IDs to SyncNotifierObservers. BUG=124149 TEST=none, there should be no behavior change. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153158

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 6

Patch Set 4 : Hmm #

Patch Set 5 : . #

Total comments: 14

Patch Set 6 : . #

Patch Set 7 : Rebase to ToT #

Patch Set 8 : Fix merge #

Total comments: 34

Patch Set 9 : Review changes #

Total comments: 14

Patch Set 10 : Minor fixes #

Patch Set 11 : Update new implementations #

Patch Set 12 : Update new implementations #

Patch Set 13 : Update new implementations (base files missing still\?) #

Patch Set 14 : Fix unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1117 lines, -715 lines) Patch
M chrome/browser/chrome_to_mobile_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_to_mobile_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc View 1 2 3 4 5 6 7 8 10 chunks +43 lines, -40 lines 0 comments Download
M chrome/browser/sync/glue/session_change_processor.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_unittest.cc View 1 2 3 4 7 4 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 3 4 5 6 7 6 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
sync/engine/download_updates_command.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M sync/engine/download_updates_command_unittest.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M sync/engine/sync_scheduler.h View 2 chunks +3 lines, -3 lines 0 comments Download
M sync/engine/sync_scheduler_impl.h View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 1 2 3 4 5 6 7 8 7 chunks +16 lines, -16 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 1 2 3 4 7 15 chunks +45 lines, -44 lines 0 comments Download
M sync/engine/sync_scheduler_whitebox_unittest.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M sync/engine/syncer_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M sync/internal_api/debug_info_event_listener.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M sync/internal_api/debug_info_event_listener.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M sync/internal_api/js_sync_manager_observer_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A sync/internal_api/public/base/invalidation_state.h View 1 2 3 4 5 7 1 chunk +25 lines, -0 lines 0 comments Download
A sync/internal_api/public/base/invalidation_state_test_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -0 lines 0 comments Download
A sync/internal_api/public/base/invalidation_state_test_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +63 lines, -0 lines 0 comments Download
D sync/internal_api/public/base/model_type_payload_map.h View 1 chunk +0 lines, -53 lines 0 comments Download
D sync/internal_api/public/base/model_type_payload_map.cc View 1 chunk +0 lines, -75 lines 0 comments Download
D sync/internal_api/public/base/model_type_payload_map_unittest.cc View 1 chunk +0 lines, -73 lines 0 comments Download
A sync/internal_api/public/base/model_type_state_map.h View 1 2 3 4 5 6 7 8 1 chunk +54 lines, -0 lines 0 comments Download
A sync/internal_api/public/base/model_type_state_map.cc View 1 2 3 4 5 6 7 8 9 1 chunk +76 lines, -0 lines 0 comments Download
A sync/internal_api/public/base/model_type_state_map_test_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -0 lines 0 comments Download
A sync/internal_api/public/base/model_type_state_map_test_util.cc View 1 2 3 4 5 6 7 8 1 chunk +111 lines, -0 lines 0 comments Download
A sync/internal_api/public/base/model_type_state_map_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +70 lines, -0 lines 0 comments Download
M sync/internal_api/public/engine/model_safe_worker.h View 2 chunks +3 lines, -3 lines 0 comments Download
M sync/internal_api/public/engine/model_safe_worker.cc View 1 chunk +4 lines, -4 lines 0 comments Download
sync/internal_api/public/engine/model_safe_worker_unittest.cc View 1 2 3 7 1 chunk +5 lines, -5 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot.h View 4 chunks +4 lines, -4 lines 0 comments Download
M sync/internal_api/public/sessions/sync_session_snapshot.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M sync/internal_api/public/sessions/sync_source_info.h View 2 chunks +4 lines, -4 lines 0 comments Download
sync/internal_api/public/sessions/sync_source_info.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +18 lines, -18 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M sync/notifier/chrome_invalidation_client.h View 3 chunks +3 lines, -3 lines 0 comments Download
M sync/notifier/chrome_invalidation_client.cc View 3 chunks +11 lines, -11 lines 0 comments Download
M sync/notifier/chrome_invalidation_client_unittest.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M sync/notifier/invalidation_notifier.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/notifier/invalidation_notifier.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M sync/notifier/invalidation_notifier_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -5 lines 0 comments Download
M sync/notifier/invalidation_util.h View 1 2 3 4 7 2 chunks +4 lines, -0 lines 0 comments Download
M sync/notifier/invalidation_util.cc View 1 2 3 4 7 1 chunk +7 lines, -0 lines 0 comments Download
M sync/notifier/mock_sync_notifier_observer.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier.h View 1 chunk +1 line, -1 line 0 comments Download
sync/notifier/non_blocking_invalidation_notifier.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M sync/notifier/non_blocking_invalidation_notifier_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -5 lines 0 comments Download
D sync/notifier/object_id_payload_map.h View 1 chunk +0 lines, -34 lines 0 comments Download
D sync/notifier/object_id_payload_map.cc View 1 chunk +0 lines, -59 lines 0 comments Download
A sync/notifier/object_id_state_map.h View 1 2 3 4 5 6 7 8 9 1 chunk +35 lines, -0 lines 0 comments Download
A sync/notifier/object_id_state_map.cc View 1 2 3 4 5 7 1 chunk +59 lines, -0 lines 0 comments Download
A sync/notifier/object_id_state_map_test_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +20 lines, -0 lines 0 comments Download
A sync/notifier/object_id_state_map_test_util.cc View 1 2 3 4 5 6 7 8 1 chunk +110 lines, -0 lines 0 comments Download
M sync/notifier/p2p_notifier.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -3 lines 0 comments Download
M sync/notifier/p2p_notifier_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +14 lines, -12 lines 0 comments Download
M sync/notifier/sync_notifier_factory_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/notifier/sync_notifier_observer.h View 2 chunks +4 lines, -4 lines 0 comments Download
M sync/notifier/sync_notifier_registrar.h View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/notifier/sync_notifier_registrar.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M sync/notifier/sync_notifier_registrar_unittest.cc View 1 2 3 4 7 9 chunks +43 lines, -43 lines 0 comments Download
M sync/sessions/session_state_unittest.cc View 2 chunks +8 lines, -8 lines 0 comments Download
M sync/sessions/sync_session.cc View 1 2 3 4 5 chunks +13 lines, -10 lines 0 comments Download
M sync/sessions/sync_session_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +23 lines, -22 lines 0 comments Download
M sync/sync.gyp View 1 2 3 4 7 5 chunks +12 lines, -5 lines 0 comments Download
sync/test/engine/fake_sync_scheduler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/test/engine/fake_sync_scheduler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
sync/test/engine/mock_connection_manager.h View 3 chunks +4 lines, -4 lines 0 comments Download
M sync/test/engine/mock_connection_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M sync/test/engine/syncer_command_test.h View 1 chunk +3 lines, -3 lines 0 comments Download
M sync/tools/sync_listen_notifications.cc View 2 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
dcheng
This is mostly just a renaming change, but I left some TODOs for things that ...
8 years, 4 months ago (2012-08-11 18:35:02 UTC) #1
akalin
few initial comments http://codereview.chromium.org/10837214/diff/75/sync/internal_api/public/base/model_type_state_map.h File sync/internal_api/public/base/model_type_state_map.h (right): http://codereview.chromium.org/10837214/diff/75/sync/internal_api/public/base/model_type_state_map.h#newcode25 sync/internal_api/public/base/model_type_state_map.h:25: struct InvalidationState { can we move ...
8 years, 4 months ago (2012-08-13 19:41:48 UTC) #2
dcheng
Ready for another pass. I still need to fix a few issues that I've listed ...
8 years, 4 months ago (2012-08-18 00:41:29 UTC) #3
akalin
few more nits http://codereview.chromium.org/10837214/diff/3075/sync/internal_api/public/base/invalidation_state.h File sync/internal_api/public/base/invalidation_state.h (right): http://codereview.chromium.org/10837214/diff/3075/sync/internal_api/public/base/invalidation_state.h#newcode12 sync/internal_api/public/base/invalidation_state.h:12: class AckHandle { add a comment/TODO ...
8 years, 4 months ago (2012-08-20 21:00:06 UTC) #4
dcheng
I made some minor additions to convince googletest to use the PrintTo() overload for InvalidationState ...
8 years, 4 months ago (2012-08-21 01:23:39 UTC) #5
akalin
i think your rebase didn't go as planned? it seems like this regressed to your ...
8 years, 4 months ago (2012-08-22 20:19:55 UTC) #6
dcheng
On 2012/08/22 20:19:55, akalin wrote: > i think your rebase didn't go as planned? it ...
8 years, 4 months ago (2012-08-22 21:20:49 UTC) #7
akalin
few more http://codereview.chromium.org/10837214/diff/18001/sync/internal_api/public/base/invalidation_state_test_util.cc File sync/internal_api/public/base/invalidation_state_test_util.cc (right): http://codereview.chromium.org/10837214/diff/18001/sync/internal_api/public/base/invalidation_state_test_util.cc#newcode9 sync/internal_api/public/base/invalidation_state_test_util.cc:9: using ::testing::MakeMatcher; move using lines inside namespace? ...
8 years, 4 months ago (2012-08-22 22:24:30 UTC) #8
dcheng
http://codereview.chromium.org/10837214/diff/18001/sync/internal_api/public/base/invalidation_state_test_util.cc File sync/internal_api/public/base/invalidation_state_test_util.cc (right): http://codereview.chromium.org/10837214/diff/18001/sync/internal_api/public/base/invalidation_state_test_util.cc#newcode9 sync/internal_api/public/base/invalidation_state_test_util.cc:9: using ::testing::MakeMatcher; On 2012/08/22 22:24:31, akalin wrote: > move ...
8 years, 4 months ago (2012-08-22 22:53:18 UTC) #9
akalin
lgtm http://codereview.chromium.org/10837214/diff/18001/sync/notifier/object_id_state_map_test_util.h File sync/notifier/object_id_state_map_test_util.h (right): http://codereview.chromium.org/10837214/diff/18001/sync/notifier/object_id_state_map_test_util.h#newcode8 sync/notifier/object_id_state_map_test_util.h:8: #include "sync/internal_api/public/base/invalidation_state_test_util.h" On 2012/08/22 22:53:19, dcheng wrote: > ...
8 years, 4 months ago (2012-08-22 23:24:27 UTC) #10
dcheng
http://codereview.chromium.org/10837214/diff/18001/sync/notifier/object_id_state_map_test_util.h File sync/notifier/object_id_state_map_test_util.h (right): http://codereview.chromium.org/10837214/diff/18001/sync/notifier/object_id_state_map_test_util.h#newcode8 sync/notifier/object_id_state_map_test_util.h:8: #include "sync/internal_api/public/base/invalidation_state_test_util.h" On 2012/08/22 23:24:27, akalin wrote: > On ...
8 years, 4 months ago (2012-08-22 23:47:11 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10837214/18004
8 years, 4 months ago (2012-08-22 23:49:09 UTC) #12
commit-bot: I haz the power
Try job failure for 10837214-18004 (retry) on linux_clang for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-23 00:16:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10837214/19014
8 years, 4 months ago (2012-08-23 01:07:07 UTC) #14
commit-bot: I haz the power
Presubmit check for 10837214-19014 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-23 01:07:38 UTC) #15
dcheng
+sky for chrome/browser stamp +mihaip for chrome/browser/extensions stamp
8 years, 4 months ago (2012-08-23 16:38:29 UTC) #16
Mihai Parparita -not on Chrome
LGTM for extensions
8 years, 4 months ago (2012-08-23 18:54:39 UTC) #17
sky
LGTM
8 years, 4 months ago (2012-08-23 19:50:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10837214/19014
8 years, 4 months ago (2012-08-23 21:29:07 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/10837214/17087
8 years, 4 months ago (2012-08-24 01:10:02 UTC) #20
commit-bot: I haz the power
8 years, 4 months ago (2012-08-24 04:29:46 UTC) #21
Change committed as 153158

Powered by Google App Engine
This is Rietveld 408576698