| Index: chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc
|
| diff --git a/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc b/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc
|
| index 83934219d5053dd5ff2c601748b478a37e0d7e98..77e4e842a669bcbb43c1c7c1d2444df79b94512f 100644
|
| --- a/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc
|
| +++ b/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc
|
| @@ -50,8 +50,7 @@ class FakeProfileSyncService : public ProfileSyncService {
|
| explicit FakeProfileSyncService(Profile* profile)
|
| : ProfileSyncService(
|
| make_scoped_ptr(new browser_sync::ChromeSyncClient(
|
| - profile,
|
| - make_scoped_ptr(new SyncApiComponentFactoryMock()))),
|
| + profile)),
|
| make_scoped_ptr<SigninManagerWrapper>(NULL),
|
| ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
|
| browser_sync::MANUAL_START,
|
| @@ -66,7 +65,10 @@ class FakeProfileSyncService : public ProfileSyncService {
|
| content::BrowserThread::FILE),
|
| content::BrowserThread::GetBlockingPool()),
|
| sync_initialized_(true),
|
| - initialized_state_violation_(false) {}
|
| + initialized_state_violation_(false) {
|
| + GetSyncClient()->Initialize(
|
| + make_scoped_ptr(new SyncApiComponentFactoryMock()), this);
|
| + }
|
|
|
| ~FakeProfileSyncService() override {}
|
|
|
|
|