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

Unified Diff: chrome/browser/sync/test/integration/p2p_sync_refresher.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
Index: chrome/browser/sync/test/integration/p2p_sync_refresher.cc
diff --git a/chrome/browser/sync/test/integration/p2p_sync_refresher.cc b/chrome/browser/sync/test/integration/p2p_sync_refresher.cc
index f344c7600bcd8031be0a6c91b7f7a92706a6c7ff..f48107302ad261f1e24e48a7e6893158cd686c0c 100644
--- a/chrome/browser/sync/test/integration/p2p_sync_refresher.cc
+++ b/chrome/browser/sync/test/integration/p2p_sync_refresher.cc
@@ -8,7 +8,7 @@
#include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "components/browser_sync/browser/profile_sync_service.h"
-#include "components/sync/sessions/sync_session_snapshot.h"
+#include "components/sync/engine/cycle/sync_cycle_snapshot.h"
#include "content/public/browser/notification_service.h"
P2PSyncRefresher::P2PSyncRefresher(Profile* profile,
@@ -24,8 +24,7 @@ P2PSyncRefresher::~P2PSyncRefresher() {
void P2PSyncRefresher::OnStateChanged() {}
void P2PSyncRefresher::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) {

Powered by Google App Engine
This is Rietveld 408576698