| Index: chrome/browser/sync/profile_sync_service_password_unittest.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service_password_unittest.cc b/chrome/browser/sync/profile_sync_service_password_unittest.cc
|
| index fabd41ea65fd62f1cb02f5e9e0e2f953996ad311..7137993241078ef9f9751cc46eb72cb9f1ed2007 100644
|
| --- a/chrome/browser/sync/profile_sync_service_password_unittest.cc
|
| +++ b/chrome/browser/sync/profile_sync_service_password_unittest.cc
|
| @@ -229,10 +229,10 @@ class ProfileSyncServicePasswordTest : public AbstractProfileSyncServiceTest {
|
| WillOnce(ReturnNewDataTypeManager());
|
|
|
| // We need tokens to get the tests going
|
| - token_service_->IssueAuthTokenForTest(
|
| - GaiaConstants::kGaiaOAuth2LoginRefreshToken, "oauth2_login_token");
|
| - token_service_->IssueAuthTokenForTest(
|
| - GaiaConstants::kSyncService, "token");
|
| + ProfileOAuth2TokenServiceFactory::GetForProfile(profile_.get())
|
| + ->UpdateCredentials("test_user@gmail.com", "oauth2_login_token");
|
| + token_service_->IssueAuthTokenForTest(GaiaConstants::kSyncService,
|
| + "token");
|
|
|
| sync_service_->RegisterDataTypeController(data_type_controller);
|
| sync_service_->Initialize();
|
|
|