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 19 matching lines...) Expand all Loading... |
30 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h" | 30 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h" |
31 #include "chrome/browser/themes/theme_service_factory.h" | 31 #include "chrome/browser/themes/theme_service_factory.h" |
32 #include "chrome/browser/web_data_service_factory.h" | 32 #include "chrome/browser/web_data_service_factory.h" |
33 #include "chrome/common/channel_info.h" | 33 #include "chrome/common/channel_info.h" |
34 #include "components/browser_sync/browser/profile_sync_components_factory_impl.h
" | 34 #include "components/browser_sync/browser/profile_sync_components_factory_impl.h
" |
35 #include "components/browser_sync/browser/profile_sync_service.h" | 35 #include "components/browser_sync/browser/profile_sync_service.h" |
36 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 36 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
37 #include "components/network_time/network_time_tracker.h" | 37 #include "components/network_time/network_time_tracker.h" |
38 #include "components/signin/core/browser/profile_oauth2_token_service.h" | 38 #include "components/signin/core/browser/profile_oauth2_token_service.h" |
39 #include "components/signin/core/browser/signin_manager.h" | 39 #include "components/signin/core/browser/signin_manager.h" |
40 #include "components/sync_driver/signin_manager_wrapper.h" | 40 #include "components/sync/driver/signin_manager_wrapper.h" |
41 #include "components/sync_driver/startup_controller.h" | 41 #include "components/sync/driver/startup_controller.h" |
42 #include "components/sync_driver/sync_util.h" | 42 #include "components/sync/driver/sync_util.h" |
43 #include "content/public/browser/browser_thread.h" | 43 #include "content/public/browser/browser_thread.h" |
44 #include "url/gurl.h" | 44 #include "url/gurl.h" |
45 | 45 |
46 #if defined(ENABLE_EXTENSIONS) | 46 #if defined(ENABLE_EXTENSIONS) |
47 #include "extensions/browser/extension_system_provider.h" | 47 #include "extensions/browser/extension_system_provider.h" |
48 #include "extensions/browser/extensions_browser_client.h" | 48 #include "extensions/browser/extensions_browser_client.h" |
49 #endif | 49 #endif |
50 | 50 |
51 #if !defined(OS_ANDROID) | 51 #if !defined(OS_ANDROID) |
52 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 52 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 189 |
190 // Will also initialize the sync client. | 190 // Will also initialize the sync client. |
191 pss->Initialize(); | 191 pss->Initialize(); |
192 return pss.release(); | 192 return pss.release(); |
193 } | 193 } |
194 | 194 |
195 // static | 195 // static |
196 bool ProfileSyncServiceFactory::HasProfileSyncService(Profile* profile) { | 196 bool ProfileSyncServiceFactory::HasProfileSyncService(Profile* profile) { |
197 return GetInstance()->GetServiceForBrowserContext(profile, false) != NULL; | 197 return GetInstance()->GetServiceForBrowserContext(profile, false) != NULL; |
198 } | 198 } |
OLD | NEW |