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

Unified Diff: chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.cc

Issue 8637006: [Sync] Make syncer commands avoid posting tasks on threads with no work to do (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head, fix windows compile Created 9 years 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/engine/fake_model_safe_worker_registrar.cc
diff --git a/chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.cc b/chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.cc
index 15a4d45f9b0f42d8bbdef01cc48f4fdce26e9aff..21ab0616a8ba47c666b9edcf5b9ffe5208946b1e 100644
--- a/chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.cc
+++ b/chrome/browser/sync/test/engine/fake_model_safe_worker_registrar.cc
@@ -15,6 +15,8 @@ FakeModelSafeWorkerRegistrar::FakeModelSafeWorkerRegistrar(
it != routes_.end(); ++it) {
groups.insert(it->second);
}
+ // Sessions always expect a passive worker to be present.
+ groups.insert(GROUP_PASSIVE);
for (std::set<ModelSafeGroup>::const_iterator it = groups.begin();
it != groups.end(); ++it) {
« no previous file with comments | « chrome/browser/sync/syncable/syncable_unittest.cc ('k') | chrome/browser/sync/test/engine/syncer_command_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698