Index: chrome/browser/browser_signin.cc |
diff --git a/chrome/browser/browser_signin.cc b/chrome/browser/browser_signin.cc |
index ec1a0fbd330fc63a5bc09c3b81fec607c528ae4b..8f4bbd61339d832f05fb71573f3650ddd6d5771d 100644 |
--- a/chrome/browser/browser_signin.cc |
+++ b/chrome/browser/browser_signin.cc |
@@ -4,7 +4,6 @@ |
#include "chrome/browser/browser_signin.h" |
-#include <algorithm> |
#include <string> |
#include <vector> |
@@ -68,10 +67,7 @@ void BrowserSigninResourcesSource::StartDataRequest(const std::string& path, |
response = jstemplate_builder::GetI18nTemplateHtml(html, &dict); |
} |
- 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)); |
} |
class BrowserSigninHtml : public HtmlDialogUIDelegate, |