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

Issue 10541079: [Sync] Remove CleanupDisabledTypes command and move purge logic into SyncManager. (Closed)

Created:
8 years, 6 months ago by Nicolas Zea
Modified:
8 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

[Sync] Remove CleanupDisabledTypes command and move purge logic into SyncManager. We were only ever performing a meaningful cleanup on reconfigurations or restart, so we make that explicit by purging from within the SyncManager's loading and configuration methods. BUG=131433, 90868 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148792

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Address comments and rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase and move cleanup into manager #

Patch Set 6 : Rebase #

Total comments: 6

Patch Set 7 : Rebase, address comments #

Patch Set 8 : Fix rebase conflict #

Total comments: 4

Patch Set 9 : Address comments #

Patch Set 10 : Fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -333 lines) Patch
D sync/engine/cleanup_disabled_types_command.h View 1 2 3 1 chunk +0 lines, -44 lines 0 comments Download
D sync/engine/cleanup_disabled_types_command.cc View 1 2 3 4 5 6 1 chunk +0 lines, -67 lines 0 comments Download
D sync/engine/cleanup_disabled_types_command_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -75 lines 0 comments Download
M sync/engine/sync_scheduler_impl.h View 1 2 3 4 5 6 2 chunks +1 line, -9 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 1 2 3 4 5 6 7 8 chunks +0 lines, -43 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +5 lines, -61 lines 0 comments Download
M sync/engine/syncer.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M sync/engine/syncer.cc View 1 2 3 4 3 chunks +0 lines, -8 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +39 lines, -1 line 0 comments Download
M sync/internal_api/syncapi_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +153 lines, -9 lines 0 comments Download
M sync/sessions/sync_session_context.h View 1 2 3 4 5 6 2 chunks +0 lines, -12 lines 0 comments Download
M sync/sync.gyp View 1 2 3 4 5 6 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Nicolas Zea
PTAL
8 years, 6 months ago (2012-06-08 20:16:20 UTC) #1
Nicolas Zea
Directory changes moved into syncer, PTAL
8 years, 6 months ago (2012-06-11 23:30:59 UTC) #2
Nicolas Zea
PTAL. The cleanup is now down in the two logical places within the sync manager. ...
8 years, 5 months ago (2012-07-18 17:49:01 UTC) #3
tim (not reviewing)
http://codereview.chromium.org/10541079/diff/30002/sync/engine/sync_scheduler_unittest.cc File sync/engine/sync_scheduler_unittest.cc (right): http://codereview.chromium.org/10541079/diff/30002/sync/engine/sync_scheduler_unittest.cc#newcode1132 sync/engine/sync_scheduler_unittest.cc:1132: } // namespace browser_sync huh? http://codereview.chromium.org/10541079/diff/30002/sync/internal_api/sync_manager_impl.cc File sync/internal_api/sync_manager_impl.cc (right): ...
8 years, 5 months ago (2012-07-19 22:05:59 UTC) #4
Nicolas Zea
PTAL. Also, added some tests in sync_api_unittest.cc http://codereview.chromium.org/10541079/diff/30002/sync/engine/sync_scheduler_unittest.cc File sync/engine/sync_scheduler_unittest.cc (right): http://codereview.chromium.org/10541079/diff/30002/sync/engine/sync_scheduler_unittest.cc#newcode1132 sync/engine/sync_scheduler_unittest.cc:1132: } // ...
8 years, 5 months ago (2012-07-20 22:07:01 UTC) #5
Nicolas Zea
ping!
8 years, 5 months ago (2012-07-24 22:51:42 UTC) #6
tim (not reviewing)
One test comment, and also update CL description since you're really moving purge logic into ...
8 years, 4 months ago (2012-07-26 21:39:45 UTC) #7
Nicolas Zea
PTAL http://codereview.chromium.org/10541079/diff/22015/sync/internal_api/sync_manager_impl.cc File sync/internal_api/sync_manager_impl.cc (right): http://codereview.chromium.org/10541079/diff/22015/sync/internal_api/sync_manager_impl.cc#newcode483 sync/internal_api/sync_manager_impl.cc:483: !CleanupDisabledTypes( On 2012/07/26 21:39:45, timsteele wrote: > nit ...
8 years, 4 months ago (2012-07-26 23:29:59 UTC) #8
tim (not reviewing)
On 2012/07/26 23:29:59, nzea wrote: > PTAL > > http://codereview.chromium.org/10541079/diff/22015/sync/internal_api/sync_manager_impl.cc > File sync/internal_api/sync_manager_impl.cc (right): > ...
8 years, 4 months ago (2012-07-27 17:15:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/10541079/52001
8 years, 4 months ago (2012-07-27 17:36:35 UTC) #10
commit-bot: I haz the power
8 years, 4 months ago (2012-07-27 20:37:56 UTC) #11
Change committed as 148792

Powered by Google App Engine
This is Rietveld 408576698