Chromium Code Reviews| 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 758db1bd7be4e2ebcec5b53ff1b85a4a9b7cb804..d1efe5d198a20eed6eb36d34d3e0e48315fb73c5 100644 |
| --- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc |
| +++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc |
| @@ -23,6 +23,7 @@ |
| #include "base/time/time.h" |
| #include "chrome/browser/autofill/personal_data_manager_factory.h" |
| #include "chrome/browser/prefs/pref_service_syncable.h" |
| +#include "chrome/browser/signin/account_tracker_service_factory.h" |
| #include "chrome/browser/signin/fake_profile_oauth2_token_service.h" |
| #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" |
| #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| @@ -47,6 +48,7 @@ |
| #include "components/autofill/core/browser/webdata/autofill_profile_syncable_service.h" |
| #include "components/autofill/core/browser/webdata/autofill_table.h" |
| #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| +#include "components/signin/core/browser/account_tracker_service.h" |
| #include "components/signin/core/browser/signin_manager.h" |
| #include "components/sync_driver/data_type_controller.h" |
| #include "components/webdata/common/web_database.h" |
| @@ -497,6 +499,7 @@ class ProfileSyncServiceAutofillTest |
| WebDataServiceFactory::GetAutofillWebDataForProfile( |
| profile_, ServiceAccessType::EXPLICIT_ACCESS), |
| profile_->GetPrefs(), |
| + AccountTrackerServiceFactory::GetForProfile(profile_), |
| profile_->IsOffTheRecord()); |
| web_data_service_->StartSyncableService(); |
| @@ -534,7 +537,8 @@ class ProfileSyncServiceAutofillTest |
| syncer::ModelType type) { |
| AbstractAutofillFactory* factory = GetFactory(type); |
| SigninManagerBase* signin = SigninManagerFactory::GetForProfile(profile_); |
| - signin->SetAuthenticatedUsername("test_user@gmail.com"); |
| + const std::string account_id = "test_user@gmail.com"; |
|
Nicolas Zea
2015/04/10 20:15:28
nit: kAccountId
Roger Tawa OOO till Jul 10th
2015/04/11 00:23:08
Done.
|
| + signin->SetAuthenticatedAccountInfo(account_id, account_id); |
|
Nicolas Zea
2015/04/10 20:15:28
should this be an id?
Roger Tawa OOO till Jul 10th
2015/04/11 00:23:08
Using two strings.
|
| sync_service_ = TestProfileSyncService::BuildAutoStartAsyncInit(profile_, |
| callback); |