Chromium Code Reviews| Index: chrome/browser/extensions/extension_system_factory.cc |
| diff --git a/chrome/browser/extensions/extension_system_factory.cc b/chrome/browser/extensions/extension_system_factory.cc |
| index 781678e1d83e2bed5a8167f199c065abc2f80369..a64ba8abe2d24673f065bb1fe1f74498cc0476ae 100644 |
| --- a/chrome/browser/extensions/extension_system_factory.cc |
| +++ b/chrome/browser/extensions/extension_system_factory.cc |
| @@ -7,6 +7,7 @@ |
| #include "chrome/browser/extensions/extension_prefs.h" |
| #include "chrome/browser/extensions/extension_service.h" |
| #include "chrome/browser/extensions/extension_system.h" |
| +#include "chrome/browser/profiles/incognito_helpers.h" |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/browser/profiles/profile_dependency_manager.h" |
| #include "chrome/browser/themes/theme_service_factory.h" |
| @@ -46,8 +47,9 @@ ProfileKeyedService* ExtensionSystemSharedFactory::BuildServiceInstanceFor( |
| return new ExtensionSystemImpl::Shared(static_cast<Profile*>(profile)); |
| } |
| -bool ExtensionSystemSharedFactory::ServiceRedirectedInIncognito() const { |
| - return true; |
| +content::BrowserContext* ExtensionSystemSharedFactory::GetBrowserContextToUse( |
| + content::BrowserContext* context) const { |
| + return chrome::GetBrowserContextRedirectedInIncognito(context); |
| } |
| // ExtensionSystemFactory |
| @@ -78,8 +80,9 @@ ProfileKeyedService* ExtensionSystemFactory::BuildServiceInstanceFor( |
| return new ExtensionSystemImpl(static_cast<Profile*>(profile)); |
| } |
| -bool ExtensionSystemFactory::ServiceHasOwnInstanceInIncognito() const { |
| - return true; |
| +content::BrowserContext* ExtensionSystemSharedFactory::GetBrowserContextToUse( |
|
Jói
2013/05/02 17:10:52
ExtensionSystemSharedFactory -> ExtensionSystemFac
Paweł Hajdan Jr.
2013/05/03 17:34:41
Done.
|
| + content::BrowserContext* context) const { |
| + return chrome::GetBrowserContextOwnInstanceInIncognito(context); |
| } |
| bool ExtensionSystemFactory::ServiceIsCreatedWithProfile() const { |