| Index: chrome/browser/browser_about_handler.cc
|
| diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
|
| index 8b6f8ae282fa711d6e979b858917db4ce24b157c..403e63c524b0e38100aeb5d911c9dadace653015 100644
|
| --- a/chrome/browser/browser_about_handler.cc
|
| +++ b/chrome/browser/browser_about_handler.cc
|
| @@ -1419,10 +1419,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 {
|
|
|