Index: chrome/browser/ui/webui/textfields_ui.cc |
diff --git a/chrome/browser/ui/webui/textfields_ui.cc b/chrome/browser/ui/webui/textfields_ui.cc |
index 819048e5b82e43d3dad24d217c16d29992e475d4..c7385f6391c4e314aa07958952205d94e10195c5 100644 |
--- a/chrome/browser/ui/webui/textfields_ui.cc |
+++ b/chrome/browser/ui/webui/textfields_ui.cc |
@@ -29,14 +29,8 @@ TextfieldsUIHTMLSource::TextfieldsUIHTMLSource() |
void TextfieldsUIHTMLSource::StartDataRequest(const std::string& path, |
bool is_incognito, |
int request_id) { |
- const std::string full_html = ResourceBundle::GetSharedInstance() |
- .GetRawDataResource(IDR_TEXTFIELDS_HTML).as_string(); |
- |
- 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, ResourceBundle::GetSharedInstance() |
+ .LoadDataResourceBytes(IDR_TEXTFIELDS_HTML)); |
} |
std::string TextfieldsUIHTMLSource::GetMimeType( |