| Index: chrome/browser/chromeos/file_system_provider/service_factory.cc
|
| diff --git a/chrome/browser/chromeos/file_system_provider/service_factory.cc b/chrome/browser/chromeos/file_system_provider/service_factory.cc
|
| index 6fc9e9965cc944500e18890baa1310c6dfae36ea..4c618c13ea99486d33a8a0ad3d7f07b1f568c005 100644
|
| --- a/chrome/browser/chromeos/file_system_provider/service_factory.cc
|
| +++ b/chrome/browser/chromeos/file_system_provider/service_factory.cc
|
| @@ -6,6 +6,8 @@
|
|
|
| #include "chrome/browser/chromeos/file_system_provider/service.h"
|
| #include "components/keyed_service/content/browser_context_dependency_manager.h"
|
| +#include "extensions/browser/extension_registry.h"
|
| +#include "extensions/browser/extension_registry_factory.h"
|
|
|
| namespace chromeos {
|
| namespace file_system_provider {
|
| @@ -23,13 +25,17 @@ ServiceFactory* ServiceFactory::GetInstance() {
|
| ServiceFactory::ServiceFactory()
|
| : BrowserContextKeyedServiceFactory(
|
| "Service",
|
| - BrowserContextDependencyManager::GetInstance()) {}
|
| + BrowserContextDependencyManager::GetInstance()) {
|
| + DependsOn(extensions::ExtensionRegistryFactory::GetInstance());
|
| +}
|
|
|
| ServiceFactory::~ServiceFactory() {}
|
|
|
| KeyedService* ServiceFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* profile) const {
|
| - return new Service(static_cast<Profile*>(profile));
|
| + return new Service(
|
| + Profile::FromBrowserContext(profile),
|
| + extensions::ExtensionRegistry::Get(Profile::FromBrowserContext(profile)));
|
| }
|
|
|
| bool ServiceFactory::ServiceIsCreatedWithBrowserContext() const { return true; }
|
|
|