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

Side by Side Diff: ui/base/webui/jstemplate_builder.cc

Issue 530623002: Use qualified path for three more grit headers from ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ui_resources too Created 6 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
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/base/webui/web_ui_util.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ui/base/webui/jstemplate_builder.h" 8 #include "ui/base/webui/jstemplate_builder.h"
9 9
10 #include "base/json/json_file_value_serializer.h" 10 #include "base/json/json_file_value_serializer.h"
11 #include "base/json/json_string_value_serializer.h" 11 #include "base/json/json_string_value_serializer.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "grit/webui_resources.h"
15 #include "ui/base/layout.h" 14 #include "ui/base/layout.h"
16 #include "ui/base/resource/resource_bundle.h" 15 #include "ui/base/resource/resource_bundle.h"
16 #include "ui/resources/grit/webui_resources.h"
17 17
18 namespace { 18 namespace {
19 19
20 // Non-zero when building version 2 templates. See UseVersion2 class. 20 // Non-zero when building version 2 templates. See UseVersion2 class.
21 int g_version2 = 0; 21 int g_version2 = 0;
22 22
23 } // namespace 23 } // namespace
24 24
25 namespace webui { 25 namespace webui {
26 26
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 NOTREACHED() << "Unable to get i18n process src"; 147 NOTREACHED() << "Unable to get i18n process src";
148 return; 148 return;
149 } 149 }
150 150
151 output->append("<script>"); 151 output->append("<script>");
152 output->append(i18n_process_src.data(), i18n_process_src.size()); 152 output->append(i18n_process_src.data(), i18n_process_src.size());
153 output->append("</script>"); 153 output->append("</script>");
154 } 154 }
155 155
156 } // namespace webui 156 } // namespace webui
OLDNEW
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/base/webui/web_ui_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698