| 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..57c7350fc7307c24690dfcb9d0fc1e340ea5814b 100644
|
| --- a/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc
|
| +++ b/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc
|
| @@ -49,9 +49,7 @@ class FakeProfileSyncService : public ProfileSyncService {
|
| public:
|
| explicit FakeProfileSyncService(Profile* profile)
|
| : ProfileSyncService(
|
| - make_scoped_ptr(new browser_sync::ChromeSyncClient(
|
| - profile,
|
| - make_scoped_ptr(new SyncApiComponentFactoryMock()))),
|
| + make_scoped_ptr(new browser_sync::ChromeSyncClient(profile)),
|
| make_scoped_ptr<SigninManagerWrapper>(NULL),
|
| ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
|
| browser_sync::MANUAL_START,
|
| @@ -66,7 +64,11 @@ class FakeProfileSyncService : public ProfileSyncService {
|
| content::BrowserThread::FILE),
|
| content::BrowserThread::GetBlockingPool()),
|
| sync_initialized_(true),
|
| - initialized_state_violation_(false) {}
|
| + initialized_state_violation_(false) {
|
| + static_cast<browser_sync::ChromeSyncClient*>(GetSyncClient())
|
| + ->SetSyncApiComponentFactoryForTesting(
|
| + make_scoped_ptr(new SyncApiComponentFactoryMock()));
|
| + }
|
|
|
| ~FakeProfileSyncService() override {}
|
|
|
|
|