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

Issue 152013003: Split up SyncEngineEventListener callbacks (Closed)

Created:
6 years, 10 months ago by rlarocque
Modified:
6 years, 10 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org, tim (not reviewing)
Visibility:
Public.

Description

Split up SyncEngineEventListener callbacks Splits up the SyncEngineEventListener calls into one callback per event type. This allow us to trim the 'event' objects so they only contain elements relevant to their event. Also removes some dead code related to STOP_SYNCING_PERMANENTLY, which is no longer in use. It may have been used for birthday errors in the past, but those are now handled with ActionableError. It was used for CLEAR_USER_DATA, but that feature is no longer supported. BUG=339984 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250384

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Patch Set 4 : Try to fix chunk mismatch #

Total comments: 12

Patch Set 5 : Review fixes #

Total comments: 2

Patch Set 6 : One more forward declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -222 lines) Patch
M sync/engine/all_status.h View 1 2 3 4 5 4 chunks +8 lines, -3 lines 0 comments Download
M sync/engine/all_status.cc View 1 2 3 4 5 4 chunks +26 lines, -23 lines 0 comments Download
A sync/engine/sync_cycle_event.h View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A + sync/engine/sync_cycle_event.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M sync/engine/sync_engine_event.h View 1 2 3 4 1 chunk +0 lines, -83 lines 0 comments Download
M sync/engine/sync_engine_event.cc View 1 2 3 4 1 chunk +0 lines, -14 lines 0 comments Download
A sync/engine/sync_engine_event_listener.h View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A + sync/engine/sync_engine_event_listener.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M sync/engine/sync_scheduler_impl.h View 1 3 chunks +1 line, -6 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 1 3 chunks +18 lines, -27 lines 0 comments Download
M sync/engine/syncer.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M sync/engine/syncer_proto_util.cc View 1 chunk +1 line, -5 lines 0 comments Download
M sync/engine/syncer_proto_util_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M sync/engine/syncer_unittest.cc View 1 3 chunks +9 lines, -7 lines 0 comments Download
M sync/internal_api/public/sessions/model_neutral_state.h View 2 chunks +1 line, -4 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 3 chunks +11 lines, -15 lines 0 comments Download
M sync/sessions/status_controller.h View 1 chunk +0 lines, -1 line 0 comments Download
M sync/sessions/status_controller.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M sync/sessions/sync_session.h View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M sync/sessions/sync_session.cc View 1 chunk +9 lines, -5 lines 0 comments Download
M sync/sessions/sync_session_context.h View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M sync/sync_core.gypi View 1 2 3 4 1 chunk +4 lines, -2 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, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
rlarocque
This splits up the SyncEngineEvent callbacks so we can make it more clear which ones ...
6 years, 10 months ago (2014-02-07 18:47:38 UTC) #1
rlarocque
ping.
6 years, 10 months ago (2014-02-10 22:55:12 UTC) #2
Nicolas Zea
https://codereview.chromium.org/152013003/diff/150001/sync/engine/all_status.cc File sync/engine/all_status.cc (left): https://codereview.chromium.org/152013003/diff/150001/sync/engine/all_status.cc#oldcode55 sync/engine/all_status.cc:55: snapshot.model_neutral_state().sync_protocol_error; Why is this removed? https://codereview.chromium.org/152013003/diff/150001/sync/engine/sync_engine_event.h File sync/engine/sync_engine_event.h (left): ...
6 years, 10 months ago (2014-02-10 23:15:15 UTC) #3
rlarocque
https://codereview.chromium.org/152013003/diff/150001/sync/engine/all_status.cc File sync/engine/all_status.cc (left): https://codereview.chromium.org/152013003/diff/150001/sync/engine/all_status.cc#oldcode55 sync/engine/all_status.cc:55: snapshot.model_neutral_state().sync_protocol_error; On 2014/02/10 23:15:16, Nicolas Zea wrote: > Why ...
6 years, 10 months ago (2014-02-11 00:19:42 UTC) #4
rlarocque
On 2014/02/11 00:19:42, rlarocque wrote: > https://codereview.chromium.org/152013003/diff/150001/sync/engine/all_status.cc > File sync/engine/all_status.cc (left): > > https://codereview.chromium.org/152013003/diff/150001/sync/engine/all_status.cc#oldcode55 > ...
6 years, 10 months ago (2014-02-11 00:24:22 UTC) #5
Nicolas Zea
LGTM, with a sanity check that birthday errors still work. Also update commit message to ...
6 years, 10 months ago (2014-02-11 00:35:05 UTC) #6
rlarocque
https://codereview.chromium.org/152013003/diff/220001/sync/engine/all_status.h File sync/engine/all_status.h (right): https://codereview.chromium.org/152013003/diff/220001/sync/engine/all_status.h#newcode16 sync/engine/all_status.h:16: #include "sync/engine/sync_cycle_event.h" On 2014/02/11 00:35:05, Nicolas Zea wrote: > ...
6 years, 10 months ago (2014-02-11 00:48:27 UTC) #7
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 10 months ago (2014-02-11 00:48:45 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/152013003/280001
6 years, 10 months ago (2014-02-11 01:02:19 UTC) #9
commit-bot: I haz the power
6 years, 10 months ago (2014-02-11 13:56:51 UTC) #10
Message was sent while issue was closed.
Change committed as 250384

Powered by Google App Engine
This is Rietveld 408576698