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

Unified Diff: chrome/utility/chrome_content_utility_client.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
« no previous file with comments | « chrome/renderer/extensions/event_bindings.cc ('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 d2287b7ed04d65b84b4f349b9e209f0048ee172b..c135677f6cf153d4e7f9e82abebeb4d6ac255325 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -22,11 +22,10 @@
#include "chrome/common/extensions/api/i18n/default_locale_handler.h"
#include "chrome/common/extensions/api/icons/icons_handler.h"
#include "chrome/common/extensions/api/themes/theme_handler.h"
+#include "chrome/common/extensions/background_info.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_l10n_util.h"
-#include "chrome/common/extensions/extension_manifest_constants.h"
#include "chrome/common/extensions/manifest.h"
-#include "chrome/common/extensions/manifest_handler.h"
#include "chrome/common/extensions/unpacker.h"
#include "chrome/common/extensions/update_manifest.h"
#include "chrome/common/safe_browsing/zip_analyzer.h"
@@ -55,24 +54,12 @@ namespace {
// Explicitly register all ManifestHandlers needed in the utility process.
void RegisterExtensionManifestHandlers() {
- extensions::ManifestHandler::Register(
- extension_manifest_keys::kBrowserAction,
- make_linked_ptr(new extensions::BrowserActionHandler));
- extensions::ManifestHandler::Register(
- extension_manifest_keys::kDefaultLocale,
- make_linked_ptr(new extensions::DefaultLocaleHandler));
- extensions::ManifestHandler::Register(
- extension_manifest_keys::kIcons,
- make_linked_ptr(new extensions::IconsHandler));
- 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));
+ (new extensions::BackgroundManifestHandler)->Register();
+ (new extensions::BrowserActionHandler)->Register();
+ (new extensions::DefaultLocaleHandler)->Register();
+ (new extensions::IconsHandler)->Register();
+ (new extensions::PageActionHandler)->Register();
+ (new extensions::ThemeHandler)->Register();
}
} // namespace
« no previous file with comments | « chrome/renderer/extensions/event_bindings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698