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

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

Issue 1137543002: Sync: add a test for downloading a tombstoned bookmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing 1st round of comments 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 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 81f4296d1d94e91d2a9e6123c28c6c33c3c9fb77..fe62d3cba1833a897e936d563785bb4c693d8c62 100644
--- a/chrome/browser/sync/test/integration/p2p_sync_refresher.cc
+++ b/chrome/browser/sync/test/integration/p2p_sync_refresher.cc
@@ -32,12 +32,8 @@ void P2PSyncRefresher::OnSyncCycleCompleted() {
snap.model_neutral_state().commit_request_types;
SyncTest* test = sync_datatype_helper::test();
for (int i = 0; i < test->num_clients(); ++i) {
- if (sync_service_->profile() != test->GetProfile(i)) {
- content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_SYNC_REFRESH_LOCAL,
- content::Source<Profile>(test->GetProfile(i)),
- content::Details<const syncer::ModelTypeSet>(&model_types));
- }
+ if (sync_service_->profile() != test->GetProfile(i))
+ test->TriggerSyncForModelTypes(i, model_types);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698