| Index: chrome/browser/extensions/api/commands/command_service.cc
|
| diff --git a/chrome/browser/extensions/api/commands/command_service.cc b/chrome/browser/extensions/api/commands/command_service.cc
|
| index a4344c72c6ea7d8311cffb660220e6e9ae5f7c7a..b7c0590f2202fc0a0dcf1058f1d1d66ad3cff22d 100644
|
| --- a/chrome/browser/extensions/api/commands/command_service.cc
|
| +++ b/chrome/browser/extensions/api/commands/command_service.cc
|
| @@ -155,17 +155,18 @@ CommandService::CommandService(content::BrowserContext* context)
|
| CommandService::~CommandService() {
|
| }
|
|
|
| -static base::LazyInstance<ProfileKeyedAPIFactory<CommandService> >
|
| -g_factory = LAZY_INSTANCE_INITIALIZER;
|
| +static base::LazyInstance<BrowserContextKeyedAPIFactory<CommandService> >
|
| + g_factory = LAZY_INSTANCE_INITIALIZER;
|
|
|
| // static
|
| -ProfileKeyedAPIFactory<CommandService>* CommandService::GetFactoryInstance() {
|
| +BrowserContextKeyedAPIFactory<CommandService>*
|
| +CommandService::GetFactoryInstance() {
|
| return g_factory.Pointer();
|
| }
|
|
|
| // static
|
| CommandService* CommandService::Get(content::BrowserContext* context) {
|
| - return ProfileKeyedAPIFactory<CommandService>::GetForProfile(context);
|
| + return BrowserContextKeyedAPIFactory<CommandService>::Get(context);
|
| }
|
|
|
| // static
|
| @@ -598,7 +599,8 @@ bool CommandService::GetExtensionActionCommand(
|
| }
|
|
|
| template <>
|
| -void ProfileKeyedAPIFactory<CommandService>::DeclareFactoryDependencies() {
|
| +void
|
| +BrowserContextKeyedAPIFactory<CommandService>::DeclareFactoryDependencies() {
|
| DependsOn(ExtensionCommandsGlobalRegistry::GetFactoryInstance());
|
| }
|
|
|
|
|