Chromium Code Reviews| 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..866baacf3614571198db9ba9f2b298bc6f3dc939 100644 |
| --- a/chrome/browser/ui/webui/about_ui.cc |
| +++ b/chrome/browser/ui/webui/about_ui.cc |
| @@ -41,6 +41,7 @@ |
| #include "chrome/browser/ui/browser_dialogs.h" |
| #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" |
| +#include "chrome/browser/ui/webui/theme_source.h" |
| #include "chrome/common/chrome_paths.h" |
| #include "chrome/common/chrome_version_info.h" |
| #include "chrome/common/jstemplate_builder.h" |
| @@ -1381,6 +1382,11 @@ 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); |
| + |
| + // Set up the chrome://theme/ source. |
|
Ted C
2012/07/27 18:18:45
Android doesn't support themes, so can you wrap th
flackr
2012/07/27 18:38:46
Done.
|
| + ThemeSource* theme = new ThemeSource(profile); |
| + ChromeURLDataManager::AddDataSource(profile, theme); |
| + |
| ChromeURLDataManager::DataSource* source = |
| new AboutUIHTMLSource(name, profile); |
| if (source) { |