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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/login_ui_helpers.cc

Issue 7980012: [ChromeOS] Reland - Make WebUI login use only needed resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4 // #include <algorithm>
5
6 #include "chrome/browser/ui/webui/chromeos/login/login_ui_helpers.h"
7
8 #include <algorithm>
9
10 #include "base/values.h"
11 #include "chrome/common/jstemplate_builder.h"
12 #include "grit/browser_resources.h"
13 #include "ui/base/resource/resource_bundle.h"
14
15 namespace chromeos {
16
17 // HTMLOperationsInterface, public:---------------------------------------------
18 base::StringPiece HTMLOperationsInterface::GetLoginHTML() {
19 base::StringPiece login_html(
20 ResourceBundle::GetSharedInstance().GetRawDataResource(
21 IDR_LOGIN_HTML));
22 return login_html;
23 }
24
25 std::string HTMLOperationsInterface::GetFullHTML(
26 base::StringPiece login_html,
27 DictionaryValue* localized_strings) {
28 return jstemplate_builder::GetI18nTemplateHtml(
29 login_html,
30 localized_strings);
31 }
32
33 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698