diff options
author | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-13 09:22:51 +0000 |
---|---|---|
committer | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-13 09:22:51 +0000 |
commit | f96554842a428f56f6d940aa79e1760c0178f50e (patch) | |
tree | 4d4b50daa772e95e0466d05462f244aba365d9c3 /chrome/utility | |
parent | 373c511f6d727194e87f90d3613dd458d583fa25 (diff) | |
download | chromium_src-f96554842a428f56f6d940aa79e1760c0178f50e.zip chromium_src-f96554842a428f56f6d940aa79e1760c0178f50e.tar.gz chromium_src-f96554842a428f56f6d940aa79e1760c0178f50e.tar.bz2 |
Move page action manifest parsing out of Extension; the first multi-key manifest handler.
Clean up some manifest unit tests.
BUG=159265
TBR=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/12042096
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182170 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/utility')
-rw-r--r-- | chrome/utility/chrome_content_utility_client.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc index d90cf14..c3b4fea 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)); |