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 "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 9 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // when it is shut down. Specify those dependencies here to build the proper | 49 // when it is shut down. Specify those dependencies here to build the proper |
50 // destruction order. | 50 // destruction order. |
51 DependsOn(TemplateURLServiceFactory::GetInstance()); | 51 DependsOn(TemplateURLServiceFactory::GetInstance()); |
52 DependsOn(PersonalDataManagerFactory::GetInstance()); | 52 DependsOn(PersonalDataManagerFactory::GetInstance()); |
53 #if defined(ENABLE_THEMES) | 53 #if defined(ENABLE_THEMES) |
54 DependsOn(ThemeServiceFactory::GetInstance()); | 54 DependsOn(ThemeServiceFactory::GetInstance()); |
55 #endif | 55 #endif |
56 DependsOn(GlobalErrorServiceFactory::GetInstance()); | 56 DependsOn(GlobalErrorServiceFactory::GetInstance()); |
57 DependsOn(SigninManagerFactory::GetInstance()); | 57 DependsOn(SigninManagerFactory::GetInstance()); |
58 DependsOn(PasswordStoreFactory::GetInstance()); | 58 DependsOn(PasswordStoreFactory::GetInstance()); |
59 DependsOn(ExtensionSystemFactory::GetInstance()); | 59 DependsOn(extensions::ExtensionSystemFactory::GetInstance()); |
60 DependsOn(WebDataServiceFactory::GetInstance()); | 60 DependsOn(WebDataServiceFactory::GetInstance()); |
61 DependsOn(HistoryServiceFactory::GetInstance()); | 61 DependsOn(HistoryServiceFactory::GetInstance()); |
62 DependsOn(BookmarkModelFactory::GetInstance()); | 62 DependsOn(BookmarkModelFactory::GetInstance()); |
63 | 63 |
64 // The following have not been converted to ProfileKeyedServices yet, and for | 64 // The following have not been converted to ProfileKeyedServices yet, and for |
65 // now they are explicitly destroyed after the ProfileDependencyManager is | 65 // now they are explicitly destroyed after the ProfileDependencyManager is |
66 // told to DestroyProfileServices, so they will be around when the | 66 // told to DestroyProfileServices, so they will be around when the |
67 // ProfileSyncService is destroyed. | 67 // ProfileSyncService is destroyed. |
68 | 68 |
69 // DependsOn(FaviconServiceFactory::GetInstance()); | 69 // DependsOn(FaviconServiceFactory::GetInstance()); |
(...skipping 25 matching lines...) Expand all Loading... |
95 | 95 |
96 pss->factory()->RegisterDataTypes(pss); | 96 pss->factory()->RegisterDataTypes(pss); |
97 pss->Initialize(); | 97 pss->Initialize(); |
98 return pss; | 98 return pss; |
99 } | 99 } |
100 | 100 |
101 // static | 101 // static |
102 bool ProfileSyncServiceFactory::HasProfileSyncService(Profile* profile) { | 102 bool ProfileSyncServiceFactory::HasProfileSyncService(Profile* profile) { |
103 return GetInstance()->GetServiceForProfile(profile, false) != NULL; | 103 return GetInstance()->GetServiceForProfile(profile, false) != NULL; |
104 } | 104 } |
OLD | NEW |