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/services/gcm/ios_chrome_gcm_profile_service_factory
.h" | 5 #include "ios/chrome/browser/services/gcm/ios_chrome_gcm_profile_service_factory
.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
| 10 #include "base/sequenced_task_runner.h" |
10 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
11 #include "components/gcm_driver/gcm_client_factory.h" | 12 #include "components/gcm_driver/gcm_client_factory.h" |
12 #include "components/gcm_driver/gcm_profile_service.h" | 13 #include "components/gcm_driver/gcm_profile_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/signin/core/browser/profile_identity_provider.h" | 15 #include "components/signin/core/browser/profile_identity_provider.h" |
15 #include "components/signin/core/browser/signin_manager.h" | 16 #include "components/signin/core/browser/signin_manager.h" |
16 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 17 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
17 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" | 18 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" |
18 #include "ios/chrome/browser/signin/signin_manager_factory.h" | 19 #include "ios/chrome/browser/signin/signin_manager_factory.h" |
19 #include "ios/chrome/common/channel_info.h" | 20 #include "ios/chrome/common/channel_info.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 GetProductCategoryForSubtypes(), | 70 GetProductCategoryForSubtypes(), |
70 base::WrapUnique(new ProfileIdentityProvider( | 71 base::WrapUnique(new ProfileIdentityProvider( |
71 ios::SigninManagerFactory::GetForBrowserState(browser_state), | 72 ios::SigninManagerFactory::GetForBrowserState(browser_state), |
72 OAuth2TokenServiceFactory::GetForBrowserState(browser_state), | 73 OAuth2TokenServiceFactory::GetForBrowserState(browser_state), |
73 base::Closure())), | 74 base::Closure())), |
74 base::WrapUnique(new gcm::GCMClientFactory), | 75 base::WrapUnique(new gcm::GCMClientFactory), |
75 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), | 76 web::WebThread::GetTaskRunnerForThread(web::WebThread::UI), |
76 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), | 77 web::WebThread::GetTaskRunnerForThread(web::WebThread::IO), |
77 blocking_task_runner); | 78 blocking_task_runner); |
78 } | 79 } |
OLD | NEW |