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

Unified Diff: chrome/browser/extensions/extension_keybinding_registry.cc

Issue 425303002: Move extension notifications to extensions/browser/notification_types.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (extension-notifications) rebase Created 6 years, 5 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_keybinding_registry.cc
diff --git a/chrome/browser/extensions/extension_keybinding_registry.cc b/chrome/browser/extensions/extension_keybinding_registry.cc
index d372e13ac6ddb0561456878d38662752a904493c..86b9116d0b1fb951c3886dc36f0df7c98b74269f 100644
--- a/chrome/browser/extensions/extension_keybinding_registry.cc
+++ b/chrome/browser/extensions/extension_keybinding_registry.cc
@@ -5,7 +5,6 @@
#include "chrome/browser/extensions/extension_keybinding_registry.h"
#include "base/values.h"
-#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/extensions/active_tab_permission_granter.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -14,6 +13,7 @@
#include "extensions/browser/event_router.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
+#include "extensions/browser/notification_types.h"
#include "extensions/common/extension_set.h"
#include "extensions/common/manifest_constants.h"
@@ -31,10 +31,10 @@ ExtensionKeybindingRegistry::ExtensionKeybindingRegistry(
Profile* profile = Profile::FromBrowserContext(browser_context_);
registrar_.Add(this,
- chrome::NOTIFICATION_EXTENSION_COMMAND_ADDED,
+ extensions::NOTIFICATION_EXTENSION_COMMAND_ADDED,
content::Source<Profile>(profile->GetOriginalProfile()));
registrar_.Add(this,
- chrome::NOTIFICATION_EXTENSION_COMMAND_REMOVED,
+ extensions::NOTIFICATION_EXTENSION_COMMAND_REMOVED,
content::Source<Profile>(profile->GetOriginalProfile()));
}
@@ -184,8 +184,8 @@ void ExtensionKeybindingRegistry::Observe(
const content::NotificationSource& source,
const content::NotificationDetails& details) {
switch (type) {
- case chrome::NOTIFICATION_EXTENSION_COMMAND_ADDED:
- case chrome::NOTIFICATION_EXTENSION_COMMAND_REMOVED: {
+ case extensions::NOTIFICATION_EXTENSION_COMMAND_ADDED:
+ case extensions::NOTIFICATION_EXTENSION_COMMAND_REMOVED: {
std::pair<const std::string, const std::string>* payload =
content::Details<std::pair<const std::string, const std::string> >(
details).ptr();
@@ -200,7 +200,7 @@ void ExtensionKeybindingRegistry::Observe(
return;
if (ExtensionMatchesFilter(extension)) {
- if (type == chrome::NOTIFICATION_EXTENSION_COMMAND_ADDED)
+ if (type == extensions::NOTIFICATION_EXTENSION_COMMAND_ADDED)
AddExtensionKeybinding(extension, payload->second);
else
RemoveExtensionKeybinding(extension, payload->second);
« no previous file with comments | « chrome/browser/extensions/extension_install_ui_browsertest.cc ('k') | chrome/browser/extensions/extension_messages_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698