Chromium Code Reviews| Index: chrome/browser/ui/webui/options/options_ui.cc |
| diff --git a/chrome/browser/ui/webui/options/options_ui.cc b/chrome/browser/ui/webui/options/options_ui.cc |
| index cd5a3e1f343d84702dabbfe638b967faee0a9bbe..b0fe288fab51b6018d1d8e5abbaa9053542f3a61 100644 |
| --- a/chrome/browser/ui/webui/options/options_ui.cc |
| +++ b/chrome/browser/ui/webui/options/options_ui.cc |
| @@ -179,9 +179,11 @@ void OptionsUIHTMLSource::StartDataRequest( |
| response_bytes = ui::ResourceBundle::GetSharedInstance(). |
| LoadDataResourceBytes(IDR_OPTIONS_BUNDLE_JS); |
| } else { |
| - // Return (and cache) the main options html page as the default. |
| - response_bytes = ui::ResourceBundle::GetSharedInstance(). |
| - LoadDataResourceBytes(IDR_OPTIONS_HTML); |
| + // Return the main options html page as the default. |
| + std::string html_page = webui::ReplaceFontFamilyAndSize( |
| + ui::ResourceBundle::GetSharedInstance(). |
| + GetRawDataResource(IDR_OPTIONS_HTML).as_string()); |
|
Dan Beam
2014/11/22 04:27:12
this probably makes more copies than I'd like, but
|
| + response_bytes = base::RefCountedString::TakeString(&html_page); |
| } |
| callback.Run(response_bytes.get()); |