| 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 2f4450be96bf91ee381c37b78d160fe66be7cc11..7a7d1f953c3ee1d6d0379b6ff884b0d8551d9dca 100644
|
| --- a/chrome/browser/sync/test/integration/profile_sync_service_harness.cc
|
| +++ b/chrome/browser/sync/test/integration/profile_sync_service_harness.cc
|
| @@ -155,6 +155,10 @@ bool ProfileSyncServiceHarness::SetupSync(
|
| // until we've finished configuration.
|
| service()->SetSetupInProgress(true);
|
|
|
| + // Authenticate sync client using GAIA credentials.
|
| + service()->signin()->SetAuthenticatedAccountInfo(username_, username_);
|
| + service()->GoogleSigninSucceeded(username_, username_, password_);
|
| +
|
| DCHECK(!username_.empty());
|
| if (signin_type_ == SigninType::UI_SIGNIN) {
|
| Browser* browser =
|
| @@ -166,7 +170,7 @@ bool ProfileSyncServiceHarness::SetupSync(
|
| }
|
| } else if (signin_type_ == SigninType::FAKE_SIGNIN) {
|
| // Authenticate sync client using GAIA credentials.
|
| - service()->signin()->SetAuthenticatedUsername(username_);
|
| + service()->signin()->SetAuthenticatedAccountInfo(username_, username_);
|
| service()->GoogleSigninSucceeded(username_, username_, password_);
|
| ProfileOAuth2TokenServiceFactory::GetForProfile(profile_)->
|
| UpdateCredentials(username_, GenerateFakeOAuth2RefreshTokenString());
|
|
|