| 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" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 return new ExtensionSystemImpl::Shared(profile); | 45 return new ExtensionSystemImpl::Shared(profile); |
| 46 } | 46 } |
| 47 | 47 |
| 48 bool ExtensionSystemSharedFactory::ServiceRedirectedInIncognito() { | 48 bool ExtensionSystemSharedFactory::ServiceRedirectedInIncognito() { |
| 49 return true; | 49 return true; |
| 50 } | 50 } |
| 51 | 51 |
| 52 // ExtensionSystemFactory | 52 // ExtensionSystemFactory |
| 53 | 53 |
| 54 // static | 54 // static |
| 55 ExtensionSystem* ExtensionSystemFactory::GetForProfile( | 55 ExtensionSystem* ExtensionSystemFactory::GetForProfile(Profile* profile) { |
| 56 Profile* profile) { | |
| 57 return static_cast<ExtensionSystem*>( | 56 return static_cast<ExtensionSystem*>( |
| 58 GetInstance()->GetServiceForProfile(profile, true)); | 57 GetInstance()->GetServiceForProfile(profile, true)); |
| 59 } | 58 } |
| 60 | 59 |
| 61 // static | 60 // static |
| 62 ExtensionSystemFactory* ExtensionSystemFactory::GetInstance() { | 61 ExtensionSystemFactory* ExtensionSystemFactory::GetInstance() { |
| 63 return Singleton<ExtensionSystemFactory>::get(); | 62 return Singleton<ExtensionSystemFactory>::get(); |
| 64 } | 63 } |
| 65 | 64 |
| 66 ExtensionSystemFactory::ExtensionSystemFactory() | 65 ExtensionSystemFactory::ExtensionSystemFactory() |
| (...skipping 11 matching lines...) Expand all Loading... |
| 78 return new ExtensionSystemImpl(profile); | 77 return new ExtensionSystemImpl(profile); |
| 79 } | 78 } |
| 80 | 79 |
| 81 bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() { | 80 bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() { |
| 82 return true; | 81 return true; |
| 83 } | 82 } |
| 84 | 83 |
| 85 bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() { | 84 bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() { |
| 86 return true; | 85 return true; |
| 87 } | 86 } |
| OLD | NEW |