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

Side by Side Diff: components/browser_sync/profile_sync_test_util.cc

Issue 2354613002: [Sync] Fix namespaces for the browser_sync component. (Closed)
Patch Set: Address comments. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/browser_sync/profile_sync_test_util.h" 5 #include "components/browser_sync/profile_sync_test_util.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "components/bookmarks/browser/bookmark_model.h" 10 #include "components/bookmarks/browser/bookmark_model.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 #if defined(OS_CHROMEOS) 235 #if defined(OS_CHROMEOS)
236 signin_manager_(&signin_client_, &account_tracker_), 236 signin_manager_(&signin_client_, &account_tracker_),
237 #else 237 #else
238 signin_manager_(&signin_client_, 238 signin_manager_(&signin_client_,
239 &auth_service_, 239 &auth_service_,
240 &account_tracker_, 240 &account_tracker_,
241 nullptr), 241 nullptr),
242 #endif 242 #endif
243 url_request_context_(new net::TestURLRequestContextGetter( 243 url_request_context_(new net::TestURLRequestContextGetter(
244 base::ThreadTaskRunnerHandle::Get())) { 244 base::ThreadTaskRunnerHandle::Get())) {
245 browser_sync::RegisterPrefsForProfileSyncService(pref_service_.registry()); 245 RegisterPrefsForProfileSyncService(pref_service_.registry());
246 auth_service_.set_auto_post_fetch_response_on_message_loop(true); 246 auth_service_.set_auto_post_fetch_response_on_message_loop(true);
247 account_tracker_.Initialize(&signin_client_); 247 account_tracker_.Initialize(&signin_client_);
248 signin_manager_.Initialize(&pref_service_); 248 signin_manager_.Initialize(&pref_service_);
249 } 249 }
250 250
251 ProfileSyncServiceBundle::~ProfileSyncServiceBundle() {} 251 ProfileSyncServiceBundle::~ProfileSyncServiceBundle() {}
252 252
253 ProfileSyncService::InitParams ProfileSyncServiceBundle::CreateBasicInitParams( 253 ProfileSyncService::InitParams ProfileSyncServiceBundle::CreateBasicInitParams(
254 ProfileSyncService::StartBehavior start_behavior, 254 ProfileSyncService::StartBehavior start_behavior,
255 std::unique_ptr<sync_driver::SyncClient> sync_client) { 255 std::unique_ptr<sync_driver::SyncClient> sync_client) {
(...skipping 11 matching lines...) Expand all
267 init_params.debug_identifier = "dummyDebugName"; 267 init_params.debug_identifier = "dummyDebugName";
268 init_params.channel = version_info::Channel::UNKNOWN; 268 init_params.channel = version_info::Channel::UNKNOWN;
269 init_params.db_thread = db_thread_; 269 init_params.db_thread = db_thread_;
270 init_params.file_thread = base::ThreadTaskRunnerHandle::Get(); 270 init_params.file_thread = base::ThreadTaskRunnerHandle::Get();
271 init_params.blocking_pool = worker_pool_owner_.pool().get(); 271 init_params.blocking_pool = worker_pool_owner_.pool().get();
272 272
273 return init_params; 273 return init_params;
274 } 274 }
275 275
276 } // namespace browser_sync 276 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/browser_sync/profile_sync_service_unittest.cc ('k') | components/browser_sync/signin_confirmation_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698