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

Unified Diff: chrome/common/extensions/api/commands/commands_handler.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/common/extensions/api/commands/commands_handler.cc
diff --git a/chrome/common/extensions/api/commands/commands_handler.cc b/chrome/common/extensions/api/commands/commands_handler.cc
index 09cb4f62cd1427b8ba84ecf197529061b124bb69..d41b4b1c2c2321dea71f90cb552dce7ead9d9838 100644
--- a/chrome/common/extensions/api/commands/commands_handler.cc
+++ b/chrome/common/extensions/api/commands/commands_handler.cc
@@ -124,7 +124,7 @@ bool CommandsHandler::Parse(Extension* extension, string16* error) {
return true;
}
-bool CommandsHandler::AlwaysParseForType(Manifest::Type type) {
+bool CommandsHandler::AlwaysParseForType(Manifest::Type type) const {
return type == Manifest::TYPE_EXTENSION ||
type == Manifest::TYPE_LEGACY_PACKAGED_APP ||
type == Manifest::TYPE_PLATFORM_APP;
@@ -139,4 +139,8 @@ void CommandsHandler::MaybeSetBrowserActionDefault(const Extension* extension,
}
}
+const std::vector<std::string> CommandsHandler::Keys() const {
+ return SingleKey(keys::kCommands);
+}
+
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698