| Index: chrome/browser/ui/webui/sessions_ui.cc
|
| diff --git a/chrome/browser/ui/webui/sessions_ui.cc b/chrome/browser/ui/webui/sessions_ui.cc
|
| index 7b2ed5c42e571ae10323e8d6c685129df40d3d13..9d3d6c1dd26539b6b10e26b329fbffbb805aed81 100644
|
| --- a/chrome/browser/ui/webui/sessions_ui.cc
|
| +++ b/chrome/browser/ui/webui/sessions_ui.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "chrome/browser/ui/webui/sessions_ui.h"
|
|
|
| +#include <algorithm>
|
| +
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/sync/engine/syncapi.h"
|
| #include "chrome/browser/sync/glue/session_model_associator.h"
|
| @@ -77,11 +79,7 @@ void SessionsUIHTMLSource::StartDataRequest(const std::string& path,
|
| &localized_strings);
|
| jstemplate_builder::AppendJsTemplateSourceHtml(&full_html);
|
|
|
| - 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));
|
| }
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|