Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2288)

Unified Diff: chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc

Issue 1421003007: [Sync] Componentize ProfileSyncComponentsFactoryImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browser_tests Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {}
« no previous file with comments | « no previous file | chrome/browser/extensions/api/sessions/sessions_apitest.cc » ('j') | chrome/browser/sync/chrome_sync_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698