diff options
author | skym <skym@chromium.org> | 2016-03-04 17:03:04 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-05 01:04:30 +0000 |
commit | 8508454d96083fec8efdd59045db7ebdf6be50d6 (patch) | |
tree | 2ca7184e495e3429c3e44ce12314d949932b0357 /sync/engine | |
parent | 9c6677f6d346364b23581302dbb3a2d3905bf873 (diff) | |
download | chromium_src-8508454d96083fec8efdd59045db7ebdf6be50d6.zip chromium_src-8508454d96083fec8efdd59045db7ebdf6be50d6.tar.gz chromium_src-8508454d96083fec8efdd59045db7ebdf6be50d6.tar.bz2 |
[Sync] Adding device count histogram based off pulsing device info.
Currently pulsing device info once per day, and counting inactive at 14 days. The intention is to setup a delete directive from the server to remove significantly old device infos, for example 60 days, one this reaches stable. The pulsing is not triggered off other sync actions, was not able to find an elegant/simple way to do this. Keying off sessions changes doesn't work if the sessions data type is disabled, and keying off a sync thread commit is problematic because we'd need to jump threads.
BUG=590006
Review URL: https://codereview.chromium.org/1764703002
Cr-Commit-Position: refs/heads/master@{#379421}
Diffstat (limited to 'sync/engine')
-rw-r--r-- | sync/engine/syncer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sync/engine/syncer.cc b/sync/engine/syncer.cc index 5eccd80..27bc1ba 100644 --- a/sync/engine/syncer.cc +++ b/sync/engine/syncer.cc @@ -214,7 +214,7 @@ bool Syncer::HandleCycleEnd( session->SendSyncCycleEndEventNotification(source); bool success = !sessions::HasSyncerError( - session->status_controller().model_neutral_state()); + session->status_controller().model_neutral_state()); if (success && source == sync_pb::GetUpdatesCallerInfo::PERIODIC) session->mutable_status_controller()->UpdatePollTime(); return success; |