Index: chrome/browser/sync/test/integration/sync_test.cc |
diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc |
index d050886bebedd229318e1312518167a25459e6cd..336d3a1224c42f80f66737ac00f979173a89f5a0 100644 |
--- a/chrome/browser/sync/test/integration/sync_test.cc |
+++ b/chrome/browser/sync/test/integration/sync_test.cc |
@@ -301,6 +301,11 @@ void SyncTest::InitializeInstance(int index) { |
EXPECT_FALSE(GetBrowser(index) == NULL) << "Could not create Browser " |
<< index << "."; |
+ // Make sure the ProfileSyncService has been created before creating the |
+ // ProfileSyncServiceHarness - some tests expect the ProfileSyncService to |
+ // already exist. |
+ ProfileSyncServiceFactory::GetForProfile(GetProfile(index)); |
+ |
clients_[index] = new ProfileSyncServiceHarness(GetProfile(index), |
username_, |
password_); |