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

Side by Side Diff: chrome/common/jstemplate_builder.cc

Issue 269095: NTP: Fix startup visual state ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « chrome/browser/resources/new_new_tab.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 4
5 // A helper function for using JsTemplate. See jstemplate_builder.h for more 5 // A helper function for using JsTemplate. See jstemplate_builder.h for more
6 // info. 6 // info.
7 7
8 #include "chrome/common/jstemplate_builder.h" 8 #include "chrome/common/jstemplate_builder.h"
9 9
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 return; 102 return;
103 } 103 }
104 104
105 output->append("<script>"); 105 output->append("<script>");
106 output->append(i18n_template_src.data(), i18n_template_src.size()); 106 output->append(i18n_template_src.data(), i18n_template_src.size());
107 output->append("</script>"); 107 output->append("</script>");
108 } 108 }
109 109
110 void AppendI18nTemplateProcessHtml(std::string* output) { 110 void AppendI18nTemplateProcessHtml(std::string* output) {
111 output->append("<script>"); 111 output->append("<script>");
112 output->append("i18nTemplate.process(document, "); 112 output->append("i18nTemplate.process(document, templateData);");
113 output->append("templateData);");
114 output->append("</script>"); 113 output->append("</script>");
115 } 114 }
116 115
117 } // namespace jstemplate_builder 116 } // namespace jstemplate_builder
OLDNEW
« no previous file with comments | « chrome/browser/resources/new_new_tab.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698