| Index: chrome/browser/sync/test/integration/profile_sync_service_harness.cc
|
| diff --git a/chrome/browser/sync/test/integration/profile_sync_service_harness.cc b/chrome/browser/sync/test/integration/profile_sync_service_harness.cc
|
| index 10a03f0b4ee7582602062936cffd83f874b7298e..ce7ef41c693dde9da9cbb169a78591597ec6c570 100644
|
| --- a/chrome/browser/sync/test/integration/profile_sync_service_harness.cc
|
| +++ b/chrome/browser/sync/test/integration/profile_sync_service_harness.cc
|
| @@ -155,7 +155,7 @@ bool ProfileSyncServiceHarness::SetupSync(
|
|
|
| // Tell the sync service that setup is in progress so we don't start syncing
|
| // until we've finished configuration.
|
| - service()->SetSetupInProgress(true);
|
| + setup_handle_ = service()->GetSetupInProgressHandle();
|
|
|
| DCHECK(!username_.empty());
|
| if (signin_type_ == SigninType::UI_SIGNIN) {
|
| @@ -163,6 +163,7 @@ bool ProfileSyncServiceHarness::SetupSync(
|
| DCHECK(browser);
|
| if (!login_ui_test_utils::SignInWithUI(browser, username_, password_)) {
|
| LOG(ERROR) << "Could not sign in to GAIA servers.";
|
| + setup_handle_.reset();
|
| return false;
|
| }
|
| } else if (signin_type_ == SigninType::FAKE_SIGNIN) {
|
| @@ -181,6 +182,7 @@ bool ProfileSyncServiceHarness::SetupSync(
|
| service()->RequestStart();
|
|
|
| if (!AwaitBackendInitialization()) {
|
| + setup_handle_.reset();
|
| return false;
|
| }
|
|
|
| @@ -305,7 +307,7 @@ bool ProfileSyncServiceHarness::IsSyncDisabled() const {
|
| }
|
|
|
| void ProfileSyncServiceHarness::FinishSyncSetup() {
|
| - service()->SetSetupInProgress(false);
|
| + setup_handle_.reset();
|
| service()->SetFirstSetupComplete();
|
| }
|
|
|
|
|