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

Unified Diff: chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.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
Index: chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc
index b13416797f49b67123214d2df754e0bcbc84a5a1..656dd0f2c65e7856ced485e6f80a2301700f70dc 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc
@@ -6,6 +6,7 @@
#include "base/path_service.h"
#include "base/utf_string_conversions.h"
#include "chrome/common/chrome_paths.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/extension.h"
#include "chrome/common/extensions/extension_manifest_constants.h"
@@ -19,16 +20,22 @@
#endif
namespace errors = extension_manifest_errors;
+namespace keys = extension_manifest_keys;
class InitValueManifestTest : public ExtensionManifestTest {
virtual void SetUp() OVERRIDE {
ExtensionManifestTest::SetUp();
extensions::ManifestHandler::Register(
- extension_manifest_keys::kOptionsPage,
+ keys::kOptionsPage,
make_linked_ptr(new extensions::OptionsPageHandler));
extensions::ManifestHandler::Register(
- extension_manifest_keys::kDefaultLocale,
+ keys::kDefaultLocale,
make_linked_ptr(new extensions::DefaultLocaleHandler));
+ linked_ptr<extensions::PageActionHandler> page_action_handler(
+ new extensions::PageActionHandler);
+ extensions::ManifestHandler::Register(keys::kPageAction, page_action_handler);
+ extensions::ManifestHandler::Register(
+ keys::kPageActions, page_action_handler);
}
};

Powered by Google App Engine
This is Rietveld 408576698