| Index: chrome/browser/sync/profile_sync_service_harness.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service_harness.cc b/chrome/browser/sync/profile_sync_service_harness.cc
|
| index 135eaf795e1b5faeaa51d12107326392fa1fdf8b..a1c7a3039463b47f5fe3e3c7b57b0186e608872c 100644
|
| --- a/chrome/browser/sync/profile_sync_service_harness.cc
|
| +++ b/chrome/browser/sync/profile_sync_service_harness.cc
|
| @@ -174,6 +174,13 @@ bool ProfileSyncServiceHarness::SetupSync(
|
| (syncable::MODEL_TYPE_COUNT - syncable::FIRST_REAL_MODEL_TYPE));
|
| service()->OnUserChoseDatatypes(sync_everything, synced_datatypes);
|
|
|
| + // Make sure that a partner client hasn't already set an explicit passphrase.
|
| + if (wait_state_ == SET_PASSPHRASE_FAILED) {
|
| + LOG(ERROR) << "A passphrase is required for decryption. Sync cannot proceed"
|
| + " until SetPassphrase is called.";
|
| + return false;
|
| + }
|
| +
|
| // Wait for initial sync cycle to be completed.
|
| DCHECK_EQ(wait_state_, WAITING_FOR_INITIAL_SYNC);
|
| if (!AwaitStatusChangeWithTimeout(kLiveSyncOperationTimeoutMs,
|
| @@ -184,12 +191,6 @@ bool ProfileSyncServiceHarness::SetupSync(
|
| return false;
|
| }
|
|
|
| - if (wait_state_ == SET_PASSPHRASE_FAILED) {
|
| - LOG(ERROR) << "A passphrase is required for decryption. Sync cannot proceed"
|
| - " until SetPassphrase is called.";
|
| - return false;
|
| - }
|
| -
|
| // Indicate to the browser that sync setup is complete.
|
| service()->SetSyncSetupCompleted();
|
|
|
|
|