OLD | NEW |
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 Loading... |
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 |
OLD | NEW |