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/invalidation/ios_chrome_profile_invalidation_provid
er_factory.h" | 5 #include "ios/chrome/browser/invalidation/ios_chrome_profile_invalidation_provid
er_factory.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 #include "base/prefs/pref_registry.h" | |
13 #include "components/gcm_driver/gcm_profile_service.h" | 12 #include "components/gcm_driver/gcm_profile_service.h" |
14 #include "components/invalidation/impl/invalidator_storage.h" | 13 #include "components/invalidation/impl/invalidator_storage.h" |
15 #include "components/invalidation/impl/profile_invalidation_provider.h" | 14 #include "components/invalidation/impl/profile_invalidation_provider.h" |
16 #include "components/invalidation/impl/ticl_invalidation_service.h" | 15 #include "components/invalidation/impl/ticl_invalidation_service.h" |
17 #include "components/invalidation/impl/ticl_profile_settings_provider.h" | 16 #include "components/invalidation/impl/ticl_profile_settings_provider.h" |
18 #include "components/keyed_service/ios/browser_state_dependency_manager.h" | 17 #include "components/keyed_service/ios/browser_state_dependency_manager.h" |
19 #include "components/pref_registry/pref_registry_syncable.h" | 18 #include "components/pref_registry/pref_registry_syncable.h" |
| 19 #include "components/prefs/pref_registry.h" |
20 #include "components/signin/core/browser/profile_identity_provider.h" | 20 #include "components/signin/core/browser/profile_identity_provider.h" |
21 #include "components/signin/core/browser/signin_manager.h" | 21 #include "components/signin/core/browser/signin_manager.h" |
22 #include "ios/chrome/browser/services/gcm/ios_chrome_gcm_profile_service_factory
.h" | 22 #include "ios/chrome/browser/services/gcm/ios_chrome_gcm_profile_service_factory
.h" |
23 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" | 23 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" |
24 #include "ios/chrome/browser/signin/signin_manager_factory.h" | 24 #include "ios/chrome/browser/signin/signin_manager_factory.h" |
25 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" | 25 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" |
26 #include "ios/web/public/web_client.h" | 26 #include "ios/web/public/web_client.h" |
27 #include "net/url_request/url_request_context_getter.h" | 27 #include "net/url_request/url_request_context_getter.h" |
28 | 28 |
29 using invalidation::InvalidatorStorage; | 29 using invalidation::InvalidatorStorage; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 make_scoped_ptr(new InvalidatorStorage(browser_state->GetPrefs()))); | 80 make_scoped_ptr(new InvalidatorStorage(browser_state->GetPrefs()))); |
81 | 81 |
82 return make_scoped_ptr(new ProfileInvalidationProvider(std::move(service))); | 82 return make_scoped_ptr(new ProfileInvalidationProvider(std::move(service))); |
83 } | 83 } |
84 | 84 |
85 void IOSChromeProfileInvalidationProviderFactory::RegisterBrowserStatePrefs( | 85 void IOSChromeProfileInvalidationProviderFactory::RegisterBrowserStatePrefs( |
86 user_prefs::PrefRegistrySyncable* registry) { | 86 user_prefs::PrefRegistrySyncable* registry) { |
87 ProfileInvalidationProvider::RegisterProfilePrefs(registry); | 87 ProfileInvalidationProvider::RegisterProfilePrefs(registry); |
88 InvalidatorStorage::RegisterProfilePrefs(registry); | 88 InvalidatorStorage::RegisterProfilePrefs(registry); |
89 } | 89 } |
OLD | NEW |