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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/login_ui_helpers.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // #include <algorithm> 4 // #include <algorithm>
5 5
6 #include "chrome/browser/ui/webui/chromeos/login/login_ui_helpers.h" 6 #include "chrome/browser/ui/webui/chromeos/login/login_ui_helpers.h"
7 7
8 #include <algorithm> 8 #include <algorithm>
9 9
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 std::string HTMLOperationsInterface::GetFullHTML( 25 std::string HTMLOperationsInterface::GetFullHTML(
26 base::StringPiece login_html, 26 base::StringPiece login_html,
27 DictionaryValue* localized_strings) { 27 DictionaryValue* localized_strings) {
28 return jstemplate_builder::GetI18nTemplateHtml( 28 return jstemplate_builder::GetI18nTemplateHtml(
29 login_html, 29 login_html,
30 localized_strings); 30 localized_strings);
31 } 31 }
32 32
33 RefCountedBytes* HTMLOperationsInterface::CreateHTMLBytes(
34 std::string full_html) {
35 RefCountedBytes* html_bytes = new RefCountedBytes();
36 html_bytes->data.resize(full_html.size());
37 std::copy(full_html.begin(),
38 full_html.end(),
39 html_bytes->data.begin());
40 return html_bytes;
41 }
42
43 } // namespace chromeos 33 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698