summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/extensions/api/commands/command_service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/extensions/api/commands/command_service.cc')
-rw-r--r--chromium/chrome/browser/extensions/api/commands/command_service.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/chromium/chrome/browser/extensions/api/commands/command_service.cc b/chromium/chrome/browser/extensions/api/commands/command_service.cc
index 6f1e04fcaf5..67601761cf7 100644
--- a/chromium/chrome/browser/extensions/api/commands/command_service.cc
+++ b/chromium/chrome/browser/extensions/api/commands/command_service.cc
@@ -27,7 +27,6 @@
#include "content/public/browser/notification_service.h"
#include "extensions/browser/extension_function_registry.h"
#include "extensions/browser/extension_prefs.h"
-#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/notification_types.h"
#include "extensions/common/feature_switch.h"
@@ -109,8 +108,7 @@ void CommandService::RegisterProfilePrefs(
}
CommandService::CommandService(content::BrowserContext* context)
- : profile_(Profile::FromBrowserContext(context)),
- extension_registry_observer_(this) {
+ : profile_(Profile::FromBrowserContext(context)) {
ExtensionFunctionRegistry::GetInstance()
.RegisterFunction<GetAllCommandsFunction>();
@@ -554,7 +552,6 @@ bool CommandService::CanAutoAssign(const Command &command,
return true;
if (command.global()) {
- using namespace extensions;
if (command.command_name() == manifest_values::kBrowserActionCommandEvent ||
command.command_name() == manifest_values::kPageActionCommandEvent)
return false; // Browser and page actions are not global in nature.