| Index: chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc
|
| diff --git a/chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc b/chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc
|
| index da4e0bdde87f11514c305902553b0a9014a01fa6..c06d6c3d1a76d8e8d6e5b72c107b0138b850d32a 100644
|
| --- a/chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc
|
| +++ b/chrome/browser/ui/webui/chromeos/proxy_settings_ui.cc
|
| @@ -53,14 +53,10 @@ void ProxySettingsHTMLSource::StartDataRequest(const std::string& path,
|
| static const base::StringPiece html(
|
| ResourceBundle::GetSharedInstance().GetRawDataResource(
|
| IDR_PROXY_SETTINGS_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));
|
| }
|
|
|
| } // namespace
|
|
|