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

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

Issue 2657673004: Add shutdown notification and service refs to SyncServiceObserver. (Closed)
Patch Set: Chromeos fix Created 3 years, 11 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 5c2adca3ae7480948a289daac60f2eececda85ea..a58fb0a30124d96e2a3a2996baf584c8b85f37c5 100644
--- a/chrome/browser/sync/test/integration/p2p_sync_refresher.cc
+++ b/chrome/browser/sync/test/integration/p2p_sync_refresher.cc
@@ -22,9 +22,7 @@ P2PSyncRefresher::~P2PSyncRefresher() {
sync_service_->RemoveObserver(this);
}
-void P2PSyncRefresher::OnStateChanged() {}
-
-void P2PSyncRefresher::OnSyncCycleCompleted() {
+void P2PSyncRefresher::OnSyncCycleCompleted(syncer::SyncService* sync) {
const syncer::SyncCycleSnapshot& snap = sync_service_->GetLastCycleSnapshot();
bool is_notifiable_commit =
(snap.model_neutral_state().num_successful_commits > 0);

Powered by Google App Engine
This is Rietveld 408576698