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

Issue 8638001: [Sync] Made some sync session member functions const (Closed)

Created:
9 years, 1 month ago by akalin
Modified:
9 years, 1 month ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

[Sync] Made some sync session member functions const In particular, split SyncSession::status_controller() into status_controller() and mutable_status_controller(). Also remove some dead code. Propagate const methods throughout sync code. This is in preparation for an upcoming change that makes ModelChangingSyncerCommand post on only the threads it needs to. BUG=97832 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111329

Patch Set 1 #

Patch Set 2 : Deinline #

Patch Set 3 : Add TODO #

Patch Set 4 : Constify one more function, fix win compile #

Patch Set 5 : Constify a few more, sync to head #

Total comments: 6

Patch Set 6 : Address comments #

Patch Set 7 : sync to head #

Patch Set 8 : fix latent bug in StatusController #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -358 lines) Patch
M chrome/browser/sync/engine/apply_updates_command.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/sync/engine/apply_updates_command_unittest.cc View 1 2 3 4 11 chunks +76 lines, -52 lines 0 comments Download
M chrome/browser/sync/engine/build_and_process_conflict_sets_command.cc View 1 2 3 4 4 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/sync/engine/build_commit_command.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/sync/engine/conflict_resolver.h View 1 2 3 4 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/sync/engine/conflict_resolver.cc View 1 2 3 4 2 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command.cc View 2 chunks +3 lines, -20 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -62 lines 0 comments Download
M chrome/browser/sync/engine/get_commit_ids_command.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/model_changing_syncer_command.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/engine/post_commit_message_command.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/process_commit_response_command.cc View 1 2 3 4 5 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/sync/engine/process_commit_response_command_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/process_updates_command.cc View 1 2 3 4 5 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/sync/engine/resolve_conflicts_command.cc View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/store_timestamps_command.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/sync_scheduler.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/syncer.cc View 1 2 3 4 5 6 8 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/sync/engine/syncer_command.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/syncer_proto_util.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/syncer_unittest.cc View 1 2 3 4 58 chunks +100 lines, -96 lines 0 comments Download
M chrome/browser/sync/engine/verify_updates_command.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/verify_updates_command_unittest.cc View 1 2 3 4 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/sync/sessions/session_state.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/sync/sessions/session_state.cc View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/sync/sessions/status_controller.h View 1 2 3 4 5 chunks +24 lines, -26 lines 0 comments Download
M chrome/browser/sync/sessions/status_controller.cc View 1 2 3 4 5 6 7 2 chunks +51 lines, -6 lines 0 comments Download
M chrome/browser/sync/sessions/status_controller_unittest.cc View 1 2 3 4 3 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session.h View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/sync/sessions/sync_session_context.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sessions/sync_session_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sessions/test_util.cc View 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
akalin
+zea for review This CL is easier to review than it looks; the meat of ...
9 years, 1 month ago (2011-11-22 03:17:00 UTC) #1
Nicolas Zea
LGTM with nits http://codereview.chromium.org/8638001/diff/6037/chrome/browser/sync/engine/process_updates_command.cc File chrome/browser/sync/engine/process_updates_command.cc (right): http://codereview.chromium.org/8638001/diff/6037/chrome/browser/sync/engine/process_updates_command.cc#newcode46 chrome/browser/sync/engine/process_updates_command.cc:46: syncable::WriteTransaction trans(FROM_HERE, syncable::SYNCER, dir); Any reason ...
9 years, 1 month ago (2011-11-22 20:18:45 UTC) #2
akalin
Addressed all comments. Committing after trybots. http://codereview.chromium.org/8638001/diff/6037/chrome/browser/sync/engine/process_updates_command.cc File chrome/browser/sync/engine/process_updates_command.cc (right): http://codereview.chromium.org/8638001/diff/6037/chrome/browser/sync/engine/process_updates_command.cc#newcode46 chrome/browser/sync/engine/process_updates_command.cc:46: syncable::WriteTransaction trans(FROM_HERE, syncable::SYNCER, ...
9 years, 1 month ago (2011-11-22 22:06:07 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/8638001/9001
9 years, 1 month ago (2011-11-23 01:23:16 UTC) #4
commit-bot: I haz the power
Can't apply patch for file chrome/browser/sync/engine/syncer.cc. While running patch -p1 --forward --force; patching file chrome/browser/sync/engine/syncer.cc ...
9 years, 1 month ago (2011-11-23 01:23:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/8638001/16002
9 years, 1 month ago (2011-11-23 01:56:25 UTC) #6
akalin
I introduced a (latent) bug in StatusController. I fixed it, and will check in as ...
9 years, 1 month ago (2011-11-23 02:53:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/8638001/21003
9 years, 1 month ago (2011-11-23 06:50:18 UTC) #8
commit-bot: I haz the power
9 years, 1 month ago (2011-11-23 07:55:21 UTC) #9
Change committed as 111329

Powered by Google App Engine
This is Rietveld 408576698