Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3882)

Unified Diff: chrome/browser/ui/webui/chromeos/login/login_ui.cc

Issue 7397021: Re-land r93365 - add RefCountedString (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/login/login_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/login_ui.cc b/chrome/browser/ui/webui/chromeos/login/login_ui.cc
index 06723cf1447ea6b9918b038117d7e7346fbe8430..0b838152b0a6fe5c3617a76185bff052bec2d0cd 100644
--- a/chrome/browser/ui/webui/chromeos/login/login_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/login/login_ui.cc
@@ -56,10 +56,7 @@ void LoginUIHTMLSource::StartDataRequest(const std::string& path,
std::string full_html = html_operations_->GetFullHTML(
login_html, localized_strings_.get());
- scoped_refptr<RefCountedBytes> html_bytes(
- html_operations_->CreateHTMLBytes(full_html));
- SendResponse(request_id,
- (html_bytes.get()));
+ SendResponse(request_id, base::RefCountedString::TakeString(&full_html));
}
std::string LoginUIHTMLSource::GetMimeType(const std::string&) const {
« no previous file with comments | « chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc ('k') | chrome/browser/ui/webui/chromeos/login/login_ui_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698