| OLD | NEW |
| 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 "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 init_params.sync_client = std::move(sync_client); | 254 init_params.sync_client = std::move(sync_client); |
| 255 init_params.signin_wrapper = | 255 init_params.signin_wrapper = |
| 256 base::MakeUnique<SigninManagerWrapper>(signin_manager()); | 256 base::MakeUnique<SigninManagerWrapper>(signin_manager()); |
| 257 init_params.oauth2_token_service = auth_service(); | 257 init_params.oauth2_token_service = auth_service(); |
| 258 init_params.network_time_update_callback = | 258 init_params.network_time_update_callback = |
| 259 base::Bind(&EmptyNetworkTimeUpdate); | 259 base::Bind(&EmptyNetworkTimeUpdate); |
| 260 init_params.base_directory = base::FilePath(FILE_PATH_LITERAL("dummyPath")); | 260 init_params.base_directory = base::FilePath(FILE_PATH_LITERAL("dummyPath")); |
| 261 init_params.url_request_context = url_request_context(); | 261 init_params.url_request_context = url_request_context(); |
| 262 init_params.debug_identifier = "dummyDebugName"; | 262 init_params.debug_identifier = "dummyDebugName"; |
| 263 init_params.channel = version_info::Channel::UNKNOWN; | 263 init_params.channel = version_info::Channel::UNKNOWN; |
| 264 init_params.blocking_pool = worker_pool_owner_.pool().get(); | 264 init_params.blocking_task_runner = |
| 265 worker_pool_owner_.pool()->GetSequencedTaskRunnerWithShutdownBehavior( |
| 266 worker_pool_owner_.pool()->GetSequenceToken(), |
| 267 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); |
| 265 | 268 |
| 266 return init_params; | 269 return init_params; |
| 267 } | 270 } |
| 268 | 271 |
| 269 } // namespace browser_sync | 272 } // namespace browser_sync |
| OLD | NEW |