Index: chrome/browser/ui/webui/chromeos/system_info_ui.cc |
diff --git a/chrome/browser/ui/webui/chromeos/system_info_ui.cc b/chrome/browser/ui/webui/chromeos/system_info_ui.cc |
index a72b32dba06aa95240d9b4b29a1f45c291bfa927..4128e5f623473bcb9a97a1c7114fe97c3d61f7a9 100644 |
--- a/chrome/browser/ui/webui/chromeos/system_info_ui.cc |
+++ b/chrome/browser/ui/webui/chromeos/system_info_ui.cc |
@@ -140,14 +140,10 @@ void SystemInfoUIHTMLSource::SyslogsComplete( |
static const base::StringPiece systeminfo_html( |
ResourceBundle::GetSharedInstance().GetRawDataResource( |
IDR_ABOUT_SYS_HTML)); |
- const std::string full_html = jstemplate_builder::GetTemplatesHtml( |
+ std::string full_html = jstemplate_builder::GetTemplatesHtml( |
systeminfo_html, &strings, "t" /* template root node id */); |
- 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)); |
} |
//////////////////////////////////////////////////////////////////////////////// |