| Index: chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
|
| diff --git a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
|
| index 03972754eb1b36dcc6379ee3bb39779c53b04229..8ca6910acbb882b4d9da12d4faa9341227c69664 100644
|
| --- a/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
|
| +++ b/chrome/browser/ui/webui/chromeos/login/oobe_ui.cc
|
| @@ -97,14 +97,10 @@ void OobeUIHTMLSource::StartDataRequest(const std::string& path,
|
| static const base::StringPiece html(
|
| ResourceBundle::GetSharedInstance().GetRawDataResource(IDR_OOBE_HTML));
|
|
|
| - const std::string& full_html = jstemplate_builder::GetI18nTemplateHtml(
|
| + std::string full_html = jstemplate_builder::GetI18nTemplateHtml(
|
| html, localized_strings_.get());
|
|
|
| - 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));
|
| }
|
|
|
| // CoreOobeHandler ------------------------------------------------------------
|
|
|