Index: chrome/browser/ui/webui/chromeos/register_page_ui.cc |
diff --git a/chrome/browser/ui/webui/chromeos/register_page_ui.cc b/chrome/browser/ui/webui/chromeos/register_page_ui.cc |
index aa13345fd235ecd9f7f091eb5bcd98244ca875d9..5e1a43913c344cce03b562e2d8e2e99467807786 100644 |
--- a/chrome/browser/ui/webui/chromeos/register_page_ui.cc |
+++ b/chrome/browser/ui/webui/chromeos/register_page_ui.cc |
@@ -173,16 +173,10 @@ void RegisterPageUIHTMLSource::StartDataRequest(const std::string& path, |
return; |
} |
- static const base::StringPiece register_html( |
- ResourceBundle::GetSharedInstance().GetRawDataResource( |
+ scoped_refptr<RefCountedMemory> html_bytes( |
+ ResourceBundle::GetSharedInstance().LoadDataResourceBytes( |
IDR_HOST_REGISTRATION_PAGE_HTML)); |
- scoped_refptr<RefCountedBytes> html_bytes(new RefCountedBytes); |
- html_bytes->data.resize(register_html.size()); |
- std::copy(register_html.begin(), |
- register_html.end(), |
- html_bytes->data.begin()); |
- |
SendResponse(request_id, html_bytes); |
#else |
scoped_refptr<RefCountedBytes> empty_bytes(new RefCountedBytes); |