Chromium Code Reviews| 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_prefs.h" | 7 #include "chrome/browser/extensions/extension_prefs.h" |
| 8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
| 9 #include "chrome/browser/extensions/extension_system.h" | 9 #include "chrome/browser/extensions/extension_system.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 43 | 43 |
| 44 ProfileKeyedService* ExtensionSystemSharedFactory::BuildServiceInstanceFor( | 44 ProfileKeyedService* ExtensionSystemSharedFactory::BuildServiceInstanceFor( |
| 45 Profile* profile) const { | 45 Profile* profile) const { |
| 46 return new ExtensionSystemImpl::Shared(profile); | 46 return new ExtensionSystemImpl::Shared(profile); |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool ExtensionSystemSharedFactory::ServiceRedirectedInIncognito() const { | 49 bool ExtensionSystemSharedFactory::ServiceRedirectedInIncognito() const { |
| 50 return true; | 50 return true; |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool ExtensionSystemSharedFactory::ServiceIsNULLOnImportProcess() const { | |
| 54 return false; | |
| 55 } | |
| 56 | |
| 53 // ExtensionSystemFactory | 57 // ExtensionSystemFactory |
| 54 | 58 |
| 55 // static | 59 // static |
| 56 ExtensionSystem* ExtensionSystemFactory::GetForProfile(Profile* profile) { | 60 ExtensionSystem* ExtensionSystemFactory::GetForProfile(Profile* profile) { |
| 57 return static_cast<ExtensionSystem*>( | 61 return static_cast<ExtensionSystem*>( |
| 58 GetInstance()->GetServiceForProfile(profile, true)); | 62 GetInstance()->GetServiceForProfile(profile, true)); |
| 59 } | 63 } |
| 60 | 64 |
| 61 // static | 65 // static |
| 62 ExtensionSystemFactory* ExtensionSystemFactory::GetInstance() { | 66 ExtensionSystemFactory* ExtensionSystemFactory::GetInstance() { |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 75 | 79 |
| 76 ProfileKeyedService* ExtensionSystemFactory::BuildServiceInstanceFor( | 80 ProfileKeyedService* ExtensionSystemFactory::BuildServiceInstanceFor( |
| 77 Profile* profile) const { | 81 Profile* profile) const { |
| 78 return new ExtensionSystemImpl(profile); | 82 return new ExtensionSystemImpl(profile); |
| 79 } | 83 } |
| 80 | 84 |
| 81 bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() const { | 85 bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() const { |
| 82 return true; | 86 return true; |
| 83 } | 87 } |
| 84 | 88 |
| 89 bool ExtensionSystemFactory::ServiceIsNULLOnImportProcess() const { | |
| 90 return false; | |
|
Elliot Glaysher
2013/03/07 20:45:48
The extension system depends on a lot of stuff, an
| |
| 91 } | |
| 92 | |
| 85 bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() const { | 93 bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() const { |
| 86 return true; | 94 return true; |
| 87 } | 95 } |
| 88 | 96 |
| 89 } // namespace extensions | 97 } // namespace extensions |
| OLD | NEW |