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

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

Issue 9465030: Break two classes defined in json_value_serializer.cc, .h into separate files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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/common/json_value_serializer_unittest.cc ('k') | chrome/common/web_apps_unittest.cc » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/json/json_value_serializer.h" 10 #include "base/json/json_file_value_serializer.h"
11 #include "base/json/json_string_value_serializer.h"
11 #include "base/logging.h" 12 #include "base/logging.h"
12 #include "base/string_util.h" 13 #include "base/string_util.h"
13 #include "grit/common_resources.h" 14 #include "grit/common_resources.h"
14 #include "ui/base/resource/resource_bundle.h" 15 #include "ui/base/resource/resource_bundle.h"
15 16
16 namespace jstemplate_builder { 17 namespace jstemplate_builder {
17 18
18 std::string GetTemplateHtml(const base::StringPiece& html_template, 19 std::string GetTemplateHtml(const base::StringPiece& html_template,
19 const DictionaryValue* json, 20 const DictionaryValue* json,
20 const base::StringPiece& template_id) { 21 const base::StringPiece& template_id) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 NOTREACHED() << "Unable to get i18n process src"; 123 NOTREACHED() << "Unable to get i18n process src";
123 return; 124 return;
124 } 125 }
125 126
126 output->append("<script>"); 127 output->append("<script>");
127 output->append(i18n_process_src.data(), i18n_process_src.size()); 128 output->append(i18n_process_src.data(), i18n_process_src.size());
128 output->append("</script>"); 129 output->append("</script>");
129 } 130 }
130 131
131 } // namespace jstemplate_builder 132 } // namespace jstemplate_builder
OLDNEW
« no previous file with comments | « chrome/common/json_value_serializer_unittest.cc ('k') | chrome/common/web_apps_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698