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

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 12042096: Move page action manifest parsing out of Extension; the first multi-key manifest handler. (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
« no previous file with comments | « chrome/test/data/extensions/page_action/page_action_manifest_version_2b.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/chrome_content_utility_client.cc
diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
index d90cf1402248a42c5842c7e4e31ee1629093fdaa..c3b4fea2e74d295afdfeeb8099b61536ced9e526 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -18,6 +18,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_utility_messages.h"
#include "chrome/common/extensions/api/extension_action/browser_action_handler.h"
+#include "chrome/common/extensions/api/extension_action/page_action_handler.h"
#include "chrome/common/extensions/api/i18n/default_locale_handler.h"
#include "chrome/common/extensions/api/themes/theme_handler.h"
#include "chrome/common/extensions/extension.h"
@@ -58,6 +59,12 @@ void RegisterExtensionManifestHandlers() {
extensions::ManifestHandler::Register(
extension_manifest_keys::kDefaultLocale,
make_linked_ptr(new extensions::DefaultLocaleHandler));
+ linked_ptr<extensions::PageActionHandler> page_action_handler(
+ new extensions::PageActionHandler);
+ extensions::ManifestHandler::Register(
+ extension_manifest_keys::kPageAction, page_action_handler);
+ extensions::ManifestHandler::Register(
+ extension_manifest_keys::kPageActions, page_action_handler);
extensions::ManifestHandler::Register(
extension_manifest_keys::kTheme,
make_linked_ptr(new extensions::ThemeHandler));
« no previous file with comments | « chrome/test/data/extensions/page_action/page_action_manifest_version_2b.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698