Index: chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc |
diff --git a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc |
index a8fc7c77ada7b9befece517ffbf0c4d671cfde8c..e8bdd0bedb2e742eaa9aee322a8ad2c4e3cec56f 100644 |
--- a/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc |
+++ b/chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc |
@@ -116,14 +116,10 @@ class UIHTMLSource : public ChromeURLDataManager::DataSource { |
static const base::StringPiece imageburn_html( |
ResourceBundle::GetSharedInstance().GetRawDataResource( |
IDR_IMAGEBURNER_HTML)); |
- const std::string full_html = jstemplate_builder::GetTemplatesHtml( |
+ std::string full_html = jstemplate_builder::GetTemplatesHtml( |
imageburn_html, &localized_strings, "more-info-link"); |
- scoped_refptr<RefCountedBytes> html_bytes(new RefCountedBytes); |
- html_bytes->data.resize(full_html.size()); |
- std::copy(full_html.begin(), full_html.end(), html_bytes->data.begin()); |
- |
- SendResponse(request_id, html_bytes); |
+ SendResponse(request_id, base::RefCountedString::TakeString(&full_html)); |
} |
virtual std::string GetMimeType(const std::string&) const { |