Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: chrome/browser/extensions/extension_commands_global_registry.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_commands_global_registry.h" 5 #include "chrome/browser/extensions/extension_commands_global_registry.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/extensions/api/commands/command_service.h" 9 #include "chrome/browser/extensions/api/commands/command_service.h"
10 #include "chrome/browser/extensions/extension_keybinding_registry.h" 10 #include "chrome/browser/extensions/extension_keybinding_registry.h"
11 #include "chrome/browser/extensions/extension_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
12 #include "chrome/browser/extensions/global_shortcut_listener.h" 12 #include "chrome/browser/extensions/global_shortcut_listener.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/extensions/extension.h" 14 #include "extensions/common/extension.h"
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 ExtensionCommandsGlobalRegistry::ExtensionCommandsGlobalRegistry( 18 ExtensionCommandsGlobalRegistry::ExtensionCommandsGlobalRegistry(
19 Profile* profile) 19 Profile* profile)
20 : ExtensionKeybindingRegistry( 20 : ExtensionKeybindingRegistry(
21 profile, ExtensionKeybindingRegistry::ALL_EXTENSIONS, NULL), 21 profile, ExtensionKeybindingRegistry::ALL_EXTENSIONS, NULL),
22 profile_(profile) { 22 profile_(profile) {
23 Init(); 23 Init();
24 } 24 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 EventTargets::iterator it = event_targets_.find(accelerator); 98 EventTargets::iterator it = event_targets_.find(accelerator);
99 if (it == event_targets_.end()) { 99 if (it == event_targets_.end()) {
100 NOTREACHED(); // Shouldn't get this event for something not registered. 100 NOTREACHED(); // Shouldn't get this event for something not registered.
101 return; 101 return;
102 } 102 }
103 103
104 CommandExecuted(it->second.first, it->second.second); 104 CommandExecuted(it->second.first, it->second.second);
105 } 105 }
106 106
107 } // namespace extensions 107 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_browsertest.h ('k') | chrome/browser/extensions/extension_context_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698