Index: sync/sessions/sync_session_unittest.cc |
diff --git a/sync/sessions/sync_session_unittest.cc b/sync/sessions/sync_session_unittest.cc |
index 012f33d2df8aa14ef33223057b737b6c4e942bf2..10542e1e423c0258f7c8baca8be5884cb9485602 100644 |
--- a/sync/sessions/sync_session_unittest.cc |
+++ b/sync/sessions/sync_session_unittest.cc |
@@ -39,16 +39,6 @@ class SyncSessionTest : public testing::Test, |
} |
virtual void SetUp() { |
- ModelSafeRoutingInfo routing_info; |
- std::vector<ModelSafeWorker*> workers; |
- |
- GetModelSafeRoutingInfo(&routing_info); |
- GetWorkers(&workers); |
- |
- context_.reset( |
- new SyncSessionContext( |
- NULL, NULL, routing_info, workers, &extensions_activity_monitor_, |
- std::vector<SyncEngineEventListener*>(), NULL, NULL)); |
routes_.clear(); |
routes_[syncable::BOOKMARKS] = GROUP_UI; |
routes_[syncable::AUTOFILL] = GROUP_DB; |
@@ -62,6 +52,16 @@ class SyncSessionTest : public testing::Test, |
workers_.push_back(passive_worker); |
workers_.push_back(ui_worker); |
workers_.push_back(db_worker); |
+ |
+ std::vector<ModelSafeWorker*> workers; |
+ GetWorkers(&workers); |
+ |
+ context_.reset( |
+ new SyncSessionContext( |
+ NULL, NULL, workers, &extensions_activity_monitor_, |
+ std::vector<SyncEngineEventListener*>(), NULL, NULL)); |
+ context_->set_routing_info(routes_); |
+ |
session_.reset(MakeSession()); |
} |
virtual void TearDown() { |