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

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

Issue 12091115: Allow manifest handlers to declare keys they depend on that must be parsed before them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dcronin 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 c917a57b78f6ef3e9529fe9db49640298e4d4323..91fae35244e2d2327c04ac0755daadc8503ebfb6 100644
--- a/chrome/browser/extensions/api/commands/command_service.cc
+++ b/chrome/browser/extensions/api/commands/command_service.cc
@@ -47,7 +47,7 @@ void CommandService::RegisterUserPrefs(PrefServiceSyncable* user_prefs) {
CommandService::CommandService(Profile* profile)
: profile_(profile) {
ManifestHandler::Register(extension_manifest_keys::kCommands,
- new CommandsHandler);
+ make_linked_ptr(new CommandsHandler));
ExtensionFunctionRegistry::GetInstance()->
RegisterFunction<GetAllCommandsFunction>();

Powered by Google App Engine
This is Rietveld 408576698