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

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

Issue 12077030: Allow signin to continue even if sync is disabled by policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows sync integration test failure Created 7 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/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_);
« no previous file with comments | « chrome/browser/sync/test/integration/migration_errors_test.cc ('k') | chrome/browser/ui/browser_command_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698