| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/sync/profile_sync_service_factory.h" | 5 #include "chrome/browser/sync/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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 DependsOn(GlobalErrorServiceFactory::GetInstance()); | 134 DependsOn(GlobalErrorServiceFactory::GetInstance()); |
| 135 DependsOn(ThemeServiceFactory::GetInstance()); | 135 DependsOn(ThemeServiceFactory::GetInstance()); |
| 136 #endif // !defined(OS_ANDROID) | 136 #endif // !defined(OS_ANDROID) |
| 137 DependsOn(HistoryServiceFactory::GetInstance()); | 137 DependsOn(HistoryServiceFactory::GetInstance()); |
| 138 DependsOn(invalidation::ProfileInvalidationProviderFactory::GetInstance()); | 138 DependsOn(invalidation::ProfileInvalidationProviderFactory::GetInstance()); |
| 139 DependsOn(PasswordStoreFactory::GetInstance()); | 139 DependsOn(PasswordStoreFactory::GetInstance()); |
| 140 DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance()); | 140 DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance()); |
| 141 DependsOn(SigninManagerFactory::GetInstance()); | 141 DependsOn(SigninManagerFactory::GetInstance()); |
| 142 DependsOn(SpellcheckServiceFactory::GetInstance()); | 142 DependsOn(SpellcheckServiceFactory::GetInstance()); |
| 143 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) | 143 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
| 144 // TODO(skym, crbug.com/705545): Fix this circular dependency. | |
| 145 // DependsOn(SupervisedUserServiceFactory::GetInstance()); | |
| 146 DependsOn(SupervisedUserSettingsServiceFactory::GetInstance()); | 144 DependsOn(SupervisedUserSettingsServiceFactory::GetInstance()); |
| 147 #if !defined(OS_ANDROID) | 145 #if !defined(OS_ANDROID) |
| 148 DependsOn(SupervisedUserSharedSettingsServiceFactory::GetInstance()); | 146 DependsOn(SupervisedUserSharedSettingsServiceFactory::GetInstance()); |
| 149 DependsOn(SupervisedUserSyncServiceFactory::GetInstance()); | 147 DependsOn(SupervisedUserSyncServiceFactory::GetInstance()); |
| 150 #endif // !defined(OS_ANDROID) | 148 #endif // !defined(OS_ANDROID) |
| 151 #endif // BUILDFLAG(ENABLE_SUPERVISED_USERS) | 149 #endif // BUILDFLAG(ENABLE_SUPERVISED_USERS) |
| 152 DependsOn(sync_sessions::SyncSessionsWebContentsRouterFactory::GetInstance()); | 150 DependsOn(sync_sessions::SyncSessionsWebContentsRouterFactory::GetInstance()); |
| 153 DependsOn(TemplateURLServiceFactory::GetInstance()); | 151 DependsOn(TemplateURLServiceFactory::GetInstance()); |
| 154 DependsOn(WebDataServiceFactory::GetInstance()); | 152 DependsOn(WebDataServiceFactory::GetInstance()); |
| 155 #if BUILDFLAG(ENABLE_EXTENSIONS) | 153 #if BUILDFLAG(ENABLE_EXTENSIONS) |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 256 |
| 259 // static | 257 // static |
| 260 void ProfileSyncServiceFactory::SetSyncClientFactoryForTest( | 258 void ProfileSyncServiceFactory::SetSyncClientFactoryForTest( |
| 261 SyncClientFactory* client_factory) { | 259 SyncClientFactory* client_factory) { |
| 262 client_factory_ = client_factory; | 260 client_factory_ = client_factory; |
| 263 } | 261 } |
| 264 | 262 |
| 265 // static | 263 // static |
| 266 ProfileSyncServiceFactory::SyncClientFactory* | 264 ProfileSyncServiceFactory::SyncClientFactory* |
| 267 ProfileSyncServiceFactory::client_factory_ = nullptr; | 265 ProfileSyncServiceFactory::client_factory_ = nullptr; |
| OLD | NEW |