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

Side by Side Diff: sync/sessions/sync_session.cc

Issue 1144443004: Revert of [Sync] Refactoring polling to be reliable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sync/sessions/status_controller.cc ('k') | sync/test/engine/fake_sync_scheduler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sync/sessions/sync_session.h" 5 #include "sync/sessions/sync_session.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 SyncSessionSnapshot snapshot( 53 SyncSessionSnapshot snapshot(
54 status_controller_->model_neutral_state(), 54 status_controller_->model_neutral_state(),
55 download_progress_markers, 55 download_progress_markers,
56 delegate_->IsCurrentlyThrottled(), 56 delegate_->IsCurrentlyThrottled(),
57 status_controller_->num_encryption_conflicts(), 57 status_controller_->num_encryption_conflicts(),
58 status_controller_->num_hierarchy_conflicts(), 58 status_controller_->num_hierarchy_conflicts(),
59 status_controller_->num_server_conflicts(), 59 status_controller_->num_server_conflicts(),
60 context_->notifications_enabled(), 60 context_->notifications_enabled(),
61 dir->GetEntriesCount(), 61 dir->GetEntriesCount(),
62 status_controller_->sync_start_time(), 62 status_controller_->sync_start_time(),
63 status_controller_->poll_finish_time(),
64 num_entries_by_type, 63 num_entries_by_type,
65 num_to_delete_entries_by_type, 64 num_to_delete_entries_by_type,
66 legacy_updates_source); 65 legacy_updates_source);
67 66
68 return snapshot; 67 return snapshot;
69 } 68 }
70 69
71 void SyncSession::SendSyncCycleEndEventNotification( 70 void SyncSession::SendSyncCycleEndEventNotification(
72 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source) { 71 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source) {
73 SyncCycleEvent event(SyncCycleEvent::SYNC_CYCLE_ENDED); 72 SyncCycleEvent event(SyncCycleEvent::SYNC_CYCLE_ENDED);
(...skipping 17 matching lines...) Expand all
91 } 90 }
92 91
93 void SyncSession::SendProtocolEvent(const ProtocolEvent& event) { 92 void SyncSession::SendProtocolEvent(const ProtocolEvent& event) {
94 FOR_EACH_OBSERVER(SyncEngineEventListener, 93 FOR_EACH_OBSERVER(SyncEngineEventListener,
95 *(context_->listeners()), 94 *(context_->listeners()),
96 OnProtocolEvent(event)); 95 OnProtocolEvent(event));
97 } 96 }
98 97
99 } // namespace sessions 98 } // namespace sessions
100 } // namespace syncer 99 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/sessions/status_controller.cc ('k') | sync/test/engine/fake_sync_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698