diff options
author | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 19:31:07 +0000 |
---|---|---|
committer | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 19:31:07 +0000 |
commit | 192132f233642398c8b1a2a20ccb7305a3cf924b (patch) | |
tree | 29ad7c6d6d9cb6810af95604dd3541e98c8487a2 /sync/engine/commit.cc | |
parent | d51f060414e9c3335a514dabb137e2283aa9f4d4 (diff) | |
download | chromium_src-192132f233642398c8b1a2a20ccb7305a3cf924b.zip chromium_src-192132f233642398c8b1a2a20ccb7305a3cf924b.tar.gz chromium_src-192132f233642398c8b1a2a20ccb7305a3cf924b.tar.bz2 |
sync: Refactor session tracking
This change refactors the related structs ErrorCounters, SyncerStatus, and
SyncCycleControlParameters. Their values have all been merged into
AllModelTypeState, which has been renamed to ModelNeutralState. All the
functions which depend on this data have been updated to use the new struct.
This change also removes the DirtyOnWrite template class, the is_dirty flag,
and the SyncerCommand logic to send change events if it detects a change in the
syncer's status. The changes are so frequent and predictable that it's easier
to just send the snapshots manually after any major syncer steps.
Finally, this change removes the 'invalid_store' status member, which was never
set nor read outside of unit tests.
BUG=132630
TEST=
Review URL: https://chromiumcodereview.appspot.com/10636010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/engine/commit.cc')
-rw-r--r-- | sync/engine/commit.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sync/engine/commit.cc b/sync/engine/commit.cc index 7cff6cb..f9a56e9 100644 --- a/sync/engine/commit.cc +++ b/sync/engine/commit.cc @@ -134,6 +134,7 @@ SyncerError BuildAndPostCommitsImpl(Syncer* syncer, if (processing_result != SYNCER_OK) { return processing_result; } + session->SendEventNotification(SyncEngineEvent::STATUS_CHANGED); } return SYNCER_OK; |