Index: chrome/browser/ui/webui/collected_cookies_ui_delegate.cc |
diff --git a/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc b/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc |
index 51edd3be3ede2e5dc147b5f26ad3587baec0b264..ca18acb3add6a21f0227d3b98ac7e29cc4e43ccf 100644 |
--- a/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc |
+++ b/chrome/browser/ui/webui/collected_cookies_ui_delegate.cc |
@@ -121,14 +121,10 @@ void CollectedCookiesSource::StartDataRequest(const std::string& path, |
static const base::StringPiece html( |
ResourceBundle::GetSharedInstance().GetRawDataResource( |
IDR_COLLECTED_COOKIES_HTML)); |
- const std::string response = jstemplate_builder::GetI18nTemplateHtml( |
+ std::string response = jstemplate_builder::GetI18nTemplateHtml( |
html, &localized_strings); |
- scoped_refptr<RefCountedBytes> html_bytes(new RefCountedBytes); |
- html_bytes->data.resize(response.size()); |
- std::copy(response.begin(), response.end(), html_bytes->data.begin()); |
- |
- SendResponse(request_id, html_bytes); |
+ SendResponse(request_id, base::RefCountedString::TakeString(&response)); |
} |
} // namespace |