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" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "ios/chrome/browser/signin/about_signin_internals_factory.h" | 31 #include "ios/chrome/browser/signin/about_signin_internals_factory.h" |
32 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" | 32 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" |
33 #include "ios/chrome/browser/signin/signin_client_factory.h" | 33 #include "ios/chrome/browser/signin/signin_client_factory.h" |
34 #include "ios/chrome/browser/signin/signin_manager_factory.h" | 34 #include "ios/chrome/browser/signin/signin_manager_factory.h" |
35 #include "ios/chrome/browser/sync/ios_chrome_sync_client.h" | 35 #include "ios/chrome/browser/sync/ios_chrome_sync_client.h" |
36 #include "ios/chrome/browser/web_data_service_factory.h" | 36 #include "ios/chrome/browser/web_data_service_factory.h" |
37 #include "ios/chrome/common/channel_info.h" | 37 #include "ios/chrome/common/channel_info.h" |
38 #include "ios/web/public/web_thread.h" | 38 #include "ios/web/public/web_thread.h" |
39 #include "url/gurl.h" | 39 #include "url/gurl.h" |
40 | 40 |
| 41 using browser_sync::ProfileSyncService; |
| 42 |
41 namespace { | 43 namespace { |
42 | 44 |
43 void UpdateNetworkTimeOnUIThread(base::Time network_time, | 45 void UpdateNetworkTimeOnUIThread(base::Time network_time, |
44 base::TimeDelta resolution, | 46 base::TimeDelta resolution, |
45 base::TimeDelta latency, | 47 base::TimeDelta latency, |
46 base::TimeTicks post_time) { | 48 base::TimeTicks post_time) { |
47 GetApplicationContext()->GetNetworkTimeTracker()->UpdateNetworkTime( | 49 GetApplicationContext()->GetNetworkTimeTracker()->UpdateNetworkTime( |
48 network_time, resolution, latency, post_time); | 50 network_time, resolution, latency, post_time); |
49 } | 51 } |
50 | 52 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 init_params.file_thread = | 146 init_params.file_thread = |
145 web::WebThread::GetTaskRunnerForThread(web::WebThread::FILE); | 147 web::WebThread::GetTaskRunnerForThread(web::WebThread::FILE); |
146 init_params.blocking_pool = web::WebThread::GetBlockingPool(); | 148 init_params.blocking_pool = web::WebThread::GetBlockingPool(); |
147 | 149 |
148 auto pss = base::MakeUnique<ProfileSyncService>(std::move(init_params)); | 150 auto pss = base::MakeUnique<ProfileSyncService>(std::move(init_params)); |
149 | 151 |
150 // Will also initialize the sync client. | 152 // Will also initialize the sync client. |
151 pss->Initialize(); | 153 pss->Initialize(); |
152 return std::move(pss); | 154 return std::move(pss); |
153 } | 155 } |
OLD | NEW |