| 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_service_factory.h" | 15 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
| 16 | 16 |
| 17 // ExtensionSystemSharedFactory | 17 // ExtensionSystemSharedFactory |
| 18 | 18 |
| 19 // static | 19 // static |
| 20 ExtensionSystemImpl::Shared* ExtensionSystemSharedFactory::GetForProfile( | 20 ExtensionSystemImpl::Shared* ExtensionSystemSharedFactory::GetForProfile( |
| 21 Profile* profile) { | 21 Profile* profile) { |
| 22 return static_cast<ExtensionSystemImpl::Shared*>( | 22 return static_cast<ExtensionSystemImpl::Shared*>( |
| 23 GetInstance()->GetServiceForProfile(profile, true)); | 23 GetInstance()->GetServiceForProfile(profile, true)); |
| 24 } | 24 } |
| 25 | 25 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 return new ExtensionSystemImpl(profile); | 78 return new ExtensionSystemImpl(profile); |
| 79 } | 79 } |
| 80 | 80 |
| 81 bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() { | 81 bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() { |
| 82 return true; | 82 return true; |
| 83 } | 83 } |
| 84 | 84 |
| 85 bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() { | 85 bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() { |
| 86 return true; | 86 return true; |
| 87 } | 87 } |
| OLD | NEW |