| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" | 5 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.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/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| 11 #include "base/threading/sequenced_worker_pool.h" |
| 11 #include "base/time/time.h" | 12 #include "base/time/time.h" |
| 12 #include "components/browser_sync/profile_sync_service.h" | 13 #include "components/browser_sync/profile_sync_service.h" |
| 13 #include "components/keyed_service/ios/browser_state_dependency_manager.h" | 14 #include "components/keyed_service/ios/browser_state_dependency_manager.h" |
| 14 #include "components/network_time/network_time_tracker.h" | 15 #include "components/network_time/network_time_tracker.h" |
| 15 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 16 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
| 16 #include "components/signin/core/browser/signin_manager.h" | 17 #include "components/signin/core/browser/signin_manager.h" |
| 17 #include "components/sync/driver/signin_manager_wrapper.h" | 18 #include "components/sync/driver/signin_manager_wrapper.h" |
| 18 #include "components/sync/driver/startup_controller.h" | 19 #include "components/sync/driver/startup_controller.h" |
| 19 #include "components/sync/driver/sync_util.h" | 20 #include "components/sync/driver/sync_util.h" |
| 20 #include "ios/chrome/browser/application_context.h" | 21 #include "ios/chrome/browser/application_context.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 blocking_pool->GetSequencedTaskRunnerWithShutdownBehavior( | 147 blocking_pool->GetSequencedTaskRunnerWithShutdownBehavior( |
| 147 blocking_pool->GetSequenceToken(), | 148 blocking_pool->GetSequenceToken(), |
| 148 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); | 149 base::SequencedWorkerPool::SKIP_ON_SHUTDOWN); |
| 149 | 150 |
| 150 auto pss = base::MakeUnique<ProfileSyncService>(std::move(init_params)); | 151 auto pss = base::MakeUnique<ProfileSyncService>(std::move(init_params)); |
| 151 | 152 |
| 152 // Will also initialize the sync client. | 153 // Will also initialize the sync client. |
| 153 pss->Initialize(); | 154 pss->Initialize(); |
| 154 return std::move(pss); | 155 return std::move(pss); |
| 155 } | 156 } |
| OLD | NEW |