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

Unified Diff: chrome/browser/extensions/api/commands/command_service.cc

Issue 12253022: Manifest handler for all keys background-related. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/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 84b40e454dbae635f287d700f89b1db18a7b4d1b..cec171cb49f8712b1950cc2bcb328648aeabefbe 100644
--- a/chrome/browser/extensions/api/commands/command_service.cc
+++ b/chrome/browser/extensions/api/commands/command_service.cc
@@ -17,7 +17,6 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/api/commands/commands_handler.h"
-#include "chrome/common/extensions/extension_manifest_constants.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_service.h"
@@ -47,8 +46,7 @@ void CommandService::RegisterUserPrefs(PrefRegistrySyncable* registry) {
CommandService::CommandService(Profile* profile)
: profile_(profile) {
- ManifestHandler::Register(extension_manifest_keys::kCommands,
- make_linked_ptr(new CommandsHandler));
+ (new CommandsHandler)->Register();
ExtensionFunctionRegistry::GetInstance()->
RegisterFunction<GetAllCommandsFunction>();

Powered by Google App Engine
This is Rietveld 408576698