Index: chrome/browser/ui/webui/media/media_internals_ui.cc |
diff --git a/chrome/browser/ui/webui/media/media_internals_ui.cc b/chrome/browser/ui/webui/media/media_internals_ui.cc |
index 6fc022914c320cac499da9edc375dd031e18ccd5..b794ff942f5e5f2d8b52d160e4d56e4dd1ee55a2 100644 |
--- a/chrome/browser/ui/webui/media/media_internals_ui.cc |
+++ b/chrome/browser/ui/webui/media/media_internals_ui.cc |
@@ -57,11 +57,7 @@ void MediaInternalsHTMLSource::StartDataRequest(const std::string& path, |
jstemplate_builder::AppendJsonHtml(&localized_strings, &html); |
jstemplate_builder::AppendI18nTemplateProcessHtml(&html); |
- scoped_refptr<RefCountedBytes> bytes(new RefCountedBytes()); |
- bytes->data.resize(html.size()); |
- std::copy(html.begin(), html.end(), bytes->data.begin()); |
- |
- SendResponse(request_id, bytes); |
+ SendResponse(request_id, base::RefCountedString::TakeString(&html)); |
} |
std::string MediaInternalsHTMLSource::GetMimeType( |