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

Unified Diff: chrome/browser/sync/test/integration/p2p_invalidation_forwarder.cc

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/sync_ui_util.cc ('k') | chrome/browser/sync/test/integration/p2p_sync_refresher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/p2p_invalidation_forwarder.cc
diff --git a/chrome/browser/sync/test/integration/p2p_invalidation_forwarder.cc b/chrome/browser/sync/test/integration/p2p_invalidation_forwarder.cc
index ba66f5d36b894250ff8335c5da62b795f9f03bab..0dc6a8763242c001da9df4139fbd353473273e94 100644
--- a/chrome/browser/sync/test/integration/p2p_invalidation_forwarder.cc
+++ b/chrome/browser/sync/test/integration/p2p_invalidation_forwarder.cc
@@ -7,7 +7,7 @@
#include "components/browser_sync/browser/profile_sync_service.h"
#include "components/invalidation/impl/p2p_invalidation_service.h"
#include "components/sync/driver/invalidation_helper.h"
-#include "components/sync/sessions/sync_session_snapshot.h"
+#include "components/sync/engine/cycle/sync_cycle_snapshot.h"
P2PInvalidationForwarder::P2PInvalidationForwarder(
ProfileSyncService* sync_service,
@@ -24,8 +24,7 @@ P2PInvalidationForwarder::~P2PInvalidationForwarder() {
void P2PInvalidationForwarder::OnStateChanged() {}
void P2PInvalidationForwarder::OnSyncCycleCompleted() {
- const syncer::sessions::SyncSessionSnapshot& snap =
- sync_service_->GetLastSessionSnapshot();
+ const syncer::SyncCycleSnapshot& snap = sync_service_->GetLastCycleSnapshot();
bool is_notifiable_commit =
(snap.model_neutral_state().num_successful_commits > 0);
if (is_notifiable_commit && invalidation_service_) {
« no previous file with comments | « chrome/browser/sync/sync_ui_util.cc ('k') | chrome/browser/sync/test/integration/p2p_sync_refresher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698