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

Unified Diff: chrome/browser/ui/webui/about_ui.cc

Issue 10830051: Restore <img> src values now that grit converts these. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only add ThemeSource if we have theme support. Created 8 years, 5 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/browser/resources/shared/css/about_version.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/about_ui.cc
diff --git a/chrome/browser/ui/webui/about_ui.cc b/chrome/browser/ui/webui/about_ui.cc
index d08806b89436fa11383a25aabe999f60714ba25c..e4a207121b25bf5454da5cef012e04269b836d2d 100644
--- a/chrome/browser/ui/webui/about_ui.cc
+++ b/chrome/browser/ui/webui/about_ui.cc
@@ -70,6 +70,10 @@
#include "webkit/glue/webkit_glue.h"
#include "webkit/plugins/webplugininfo.h"
+#if defined(ENABLE_THEMES)
+#include "chrome/browser/ui/webui/theme_source.h"
+#endif
+
#if defined(OS_LINUX) || defined(OS_OPENBSD)
#include "content/public/browser/zygote_host_linux.h"
#include "content/public/common/sandbox_linux.h"
@@ -1381,6 +1385,13 @@ std::string AboutUIHTMLSource::GetMimeType(const std::string& path) const {
AboutUI::AboutUI(content::WebUI* web_ui, const std::string& name)
: WebUIController(web_ui) {
Profile* profile = Profile::FromWebUI(web_ui);
+
+#if defined(ENABLE_THEMES)
+ // Set up the chrome://theme/ source.
+ ThemeSource* theme = new ThemeSource(profile);
+ ChromeURLDataManager::AddDataSource(profile, theme);
+#endif
+
ChromeURLDataManager::DataSource* source =
new AboutUIHTMLSource(name, profile);
if (source) {
« no previous file with comments | « chrome/browser/resources/shared/css/about_version.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698