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

Unified Diff: chrome/browser/sync/test_profile_sync_service.cc

Issue 1607473003: Create profile_sync_test_util in components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix iOS Created 4 years, 11 months 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
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.cc ('k') | components/browser_sync.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test_profile_sync_service.cc
diff --git a/chrome/browser/sync/test_profile_sync_service.cc b/chrome/browser/sync/test_profile_sync_service.cc
index 1d2c82824f4aae395ec9260e405702e2128a0367..6c3b9d40eed41b99ac54ecab2b8f8ea020a5c5a2 100644
--- a/chrome/browser/sync/test_profile_sync_service.cc
+++ b/chrome/browser/sync/test_profile_sync_service.cc
@@ -17,9 +17,9 @@
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/sync/chrome_sync_client.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
-#include "chrome/browser/sync/profile_sync_test_util.h"
#include "chrome/browser/sync/test/test_http_bridge_factory.h"
#include "chrome/common/channel_info.h"
+#include "components/browser_sync/browser/profile_sync_test_util.h"
#include "components/invalidation/impl/profile_invalidation_provider.h"
#include "components/signin/core/browser/signin_manager.h"
#include "components/sync_driver/glue/sync_backend_host.h"
@@ -46,13 +46,26 @@ ProfileSyncService::InitParams GetInitParams(
SigninManagerBase* signin,
ProfileOAuth2TokenService* oauth2_token_service,
browser_sync::ProfileSyncServiceStartBehavior behavior) {
- ProfileSyncService::InitParams init_params =
- CreateProfileSyncServiceParamsForTest(profile);
+ ProfileSyncService::InitParams init_params;
init_params.signin_wrapper =
make_scoped_ptr(new SigninManagerWrapper(signin));
init_params.oauth2_token_service = oauth2_token_service;
init_params.start_behavior = behavior;
+ init_params.sync_client =
+ make_scoped_ptr(new browser_sync::ChromeSyncClient(profile));
+ init_params.network_time_update_callback =
+ base::Bind(&browser_sync::EmptyNetworkTimeUpdate);
+ init_params.base_directory = profile->GetPath();
+ init_params.url_request_context = profile->GetRequestContext();
+ init_params.debug_identifier = profile->GetDebugName();
+ init_params.channel = chrome::GetChannel();
+ init_params.db_thread = content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::DB);
+ init_params.file_thread =
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::FILE);
+ init_params.blocking_pool = content::BrowserThread::GetBlockingPool();
return init_params;
}
« no previous file with comments | « chrome/browser/sync/profile_sync_test_util.cc ('k') | components/browser_sync.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698