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

Unified Diff: chrome/common/extensions/manifest_tests/extension_manifests_homepage_unittest.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/common/extensions/manifest_tests/extension_manifests_homepage_unittest.cc
diff --git a/chrome/common/extensions/manifest_tests/extension_manifests_homepage_unittest.cc b/chrome/common/extensions/manifest_tests/extension_manifests_homepage_unittest.cc
index 71b2f3144b1f0178b7276f03befdcd41aa9bbd28..e3b7badbd3f10e920ddf6a87f66c39665e325480 100644
--- a/chrome/common/extensions/manifest_tests/extension_manifests_homepage_unittest.cc
+++ b/chrome/common/extensions/manifest_tests/extension_manifests_homepage_unittest.cc
@@ -15,10 +15,12 @@ namespace errors = extension_manifest_errors;
class HomepageURLManifestTest : public ExtensionManifestTest {
virtual void SetUp() OVERRIDE {
ExtensionManifestTest::SetUp();
- extensions::ManifestHandler::Register(extension_manifest_keys::kHomepageURL,
- new extensions::HomepageURLHandler);
- extensions::ManifestHandler::Register(extension_manifest_keys::kUpdateURL,
- new extensions::UpdateURLHandler);
+ extensions::ManifestHandler::Register(
+ extension_manifest_keys::kHomepageURL,
+ make_linked_ptr(new extensions::HomepageURLHandler));
+ extensions::ManifestHandler::Register(
+ extension_manifest_keys::kUpdateURL,
+ make_linked_ptr(new extensions::UpdateURLHandler));
}
};

Powered by Google App Engine
This is Rietveld 408576698