Index: chrome/browser/browser_about_handler.cc |
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc |
index 6ee0a36083f92db35c6fd229b718dd0b5d7b9291..6ad5d2677f4bc24b998446b1b87bc8a8e7e668b5 100644 |
--- a/chrome/browser/browser_about_handler.cc |
+++ b/chrome/browser/browser_about_handler.cc |
@@ -1421,10 +1421,8 @@ void AboutSource::StartDataRequest(const std::string& path, |
} |
void AboutSource::FinishDataRequest(const std::string& html, int request_id) { |
- scoped_refptr<RefCountedBytes> html_bytes(new RefCountedBytes); |
- html_bytes->data.resize(html.size()); |
- std::copy(html.begin(), html.end(), html_bytes->data.begin()); |
- SendResponse(request_id, html_bytes); |
+ std::string html_copy(html); |
+ SendResponse(request_id, base::RefCountedString::TakeString(&html_copy)); |
} |
std::string AboutSource::GetMimeType(const std::string& path) const { |