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/extensions/extension_system_factory.h" | 5 #include "chrome/browser/extensions/extension_system_factory.h" |
6 | 6 |
7 #include "chrome/browser/extensions/extension_message_service.h" | 7 #include "chrome/browser/extensions/extension_message_service.h" |
8 #include "chrome/browser/extensions/extension_prefs.h" | 8 #include "chrome/browser/extensions/extension_prefs.h" |
9 #include "chrome/browser/extensions/extension_service.h" | 9 #include "chrome/browser/extensions/extension_service.h" |
10 #include "chrome/browser/extensions/extension_system.h" | 10 #include "chrome/browser/extensions/extension_system.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/profiles/profile_dependency_manager.h" | 12 #include "chrome/browser/profiles/profile_dependency_manager.h" |
13 #include "chrome/browser/protector/protector_service_factory.h" | 13 #include "chrome/browser/protector/protector_service_factory.h" |
14 #include "chrome/browser/themes/theme_service_factory.h" | 14 #include "chrome/browser/themes/theme_service_factory.h" |
15 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 15 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
16 | 16 |
| 17 namespace extensions { |
| 18 |
17 // ExtensionSystemSharedFactory | 19 // ExtensionSystemSharedFactory |
18 | 20 |
19 // static | 21 // static |
20 ExtensionSystemImpl::Shared* ExtensionSystemSharedFactory::GetForProfile( | 22 ExtensionSystemImpl::Shared* |
21 Profile* profile) { | 23 ExtensionSystemSharedFactory::GetForProfile(Profile* profile) { |
22 return static_cast<ExtensionSystemImpl::Shared*>( | 24 return static_cast<ExtensionSystemImpl::Shared*>( |
23 GetInstance()->GetServiceForProfile(profile, true)); | 25 GetInstance()->GetServiceForProfile(profile, true)); |
24 } | 26 } |
25 | 27 |
26 // static | 28 // static |
27 ExtensionSystemSharedFactory* ExtensionSystemSharedFactory::GetInstance() { | 29 ExtensionSystemSharedFactory* ExtensionSystemSharedFactory::GetInstance() { |
28 return Singleton<ExtensionSystemSharedFactory>::get(); | 30 return Singleton<ExtensionSystemSharedFactory>::get(); |
29 } | 31 } |
30 | 32 |
31 ExtensionSystemSharedFactory::ExtensionSystemSharedFactory() | 33 ExtensionSystemSharedFactory::ExtensionSystemSharedFactory() |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 return new ExtensionSystemImpl(profile); | 84 return new ExtensionSystemImpl(profile); |
83 } | 85 } |
84 | 86 |
85 bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() { | 87 bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() { |
86 return true; | 88 return true; |
87 } | 89 } |
88 | 90 |
89 bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() { | 91 bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() { |
90 return true; | 92 return true; |
91 } | 93 } |
| 94 |
| 95 } // namespace extensions |
OLD | NEW |