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

Unified Diff: chrome/browser/themes/theme_service.cc

Issue 11968032: Move 'theme' parsing out of Extension class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ManifestHandler registration in theme_service Created 7 years, 11 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/browser/themes/theme_service.cc
diff --git a/chrome/browser/themes/theme_service.cc b/chrome/browser/themes/theme_service.cc
index 046784e227cfbc20e3130c7e225ef38e370d7957..9bc0702f5208459dc0d26ec30e7c5d599551dccc 100644
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -18,6 +18,9 @@
#include "chrome/browser/themes/theme_syncable_service.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_notification_types.h"
+#include "chrome/common/extensions/extension_manifest_constants.h"
+#include "chrome/common/extensions/manifest_handler.h"
+#include "chrome/common/extensions/theme_handler.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/user_metrics.h"
@@ -214,6 +217,10 @@ ThemeService::ThemeService()
number_of_infobars_(0) {
// Initialize the themeable image map so we can use it on other threads.
HasThemeableImage(0);
+
+ // Register the ManifestHandler for parsing 'theme' manifest key.
+ extensions::ManifestHandler::Register(extension_manifest_keys::kTheme,
+ new extensions::ThemeHandler);
}
ThemeService::~ThemeService() {

Powered by Google App Engine
This is Rietveld 408576698