| Index: chrome/browser/sync/profile_sync_service_autofill_unittest.cc
|
| diff --git a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
|
| index 4f03967c9b2e5d16571d0fd5346c61f337f222cb..d0089f55dba99f90fadb1c06251932b19cc0d6c0 100644
|
| --- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
|
| +++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
|
| @@ -588,11 +588,10 @@ class ProfileSyncServiceAutofillTest
|
| EXPECT_CALL(*personal_data_manager_, IsDataLoaded()).
|
| WillRepeatedly(Return(true));
|
|
|
| - // We need tokens to get the tests going
|
| - token_service_->IssueAuthTokenForTest(
|
| - GaiaConstants::kGaiaOAuth2LoginRefreshToken, "oauth2_login_token");
|
| - token_service_->IssueAuthTokenForTest(
|
| - GaiaConstants::kSyncService, "token");
|
| + // We need tokens to get the tests going
|
| + 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();
|
|
|