Index: chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc |
diff --git a/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc b/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc |
index 79946d7c30b4be366162288f497c4075e089a7db..30b8bef3098e54a576a87ddbcd35b97a905a82d4 100644 |
--- a/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc |
+++ b/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc |
@@ -430,14 +430,10 @@ void MobileSetupUIHTMLSource::StartDataRequest(const std::string& path, |
ResourceBundle::GetSharedInstance().GetRawDataResource( |
IDR_MOBILE_SETUP_PAGE_HTML)); |
- const std::string full_html = jstemplate_builder::GetI18nTemplateHtml( |
- html, &strings); |
+ std::string full_html = jstemplate_builder::GetI18nTemplateHtml(html, |
+ &strings); |
- 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)); |
} |
//////////////////////////////////////////////////////////////////////////////// |