| Index: chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.cc
|
| diff --git a/chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.cc b/chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.cc
|
| index ad2717ce1ba46fe6e53e9c6b87e2177742732581..cae85c188811b961bf31665a8ad57da5487afa64 100644
|
| --- a/chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.cc
|
| +++ b/chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.cc
|
| @@ -243,11 +243,7 @@ void EnterpriseEnrollmentDataSource::StartDataRequest(const std::string& path,
|
| response = jstemplate_builder::GetI18nTemplateHtml(html, &strings);
|
| }
|
|
|
| - // Send the response.
|
| - 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));
|
| }
|
|
|
| std::string EnterpriseEnrollmentDataSource::GetMimeType(
|
|
|