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

Unified Diff: content/browser/webui/web_ui_data_source_impl.cc

Issue 599653003: Remove old template html boilerplate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bydefault
Patch Set: fix android 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/webui/web_ui_data_source_impl.cc
diff --git a/content/browser/webui/web_ui_data_source_impl.cc b/content/browser/webui/web_ui_data_source_impl.cc
index 05fd1bbdf293c42c11b1195ed623a093e43ca558..fd75bf3e5b8e3b1effd464f6b0f83f6fec51cc60 100644
--- a/content/browser/webui/web_ui_data_source_impl.cc
+++ b/content/browser/webui/web_ui_data_source_impl.cc
@@ -110,7 +110,6 @@ WebUIDataSourceImpl::WebUIDataSourceImpl(const std::string& source_name)
new InternalDataSource(this)),
source_name_(source_name),
default_resource_(-1),
- json_js_format_v2_(false),
add_csp_(true),
object_src_set_(false),
frame_src_set_(false),
@@ -151,10 +150,6 @@ void WebUIDataSourceImpl::SetJsonPath(const std::string& path) {
json_path_ = path;
}
-void WebUIDataSourceImpl::SetUseJsonJSFormatV2() {
- json_js_format_v2_ = true;
-}
-
void WebUIDataSourceImpl::AddResourcePath(const std::string &path,
int resource_id) {
path_to_idr_map_[path] = resource_id;
@@ -243,10 +238,6 @@ void WebUIDataSourceImpl::SendLocalizedStringsAsJSON(
if (!disable_set_font_strings_)
webui::SetFontAndTextDirection(&localized_strings_);
- scoped_ptr<webui::UseVersion2> version2;
- if (json_js_format_v2_)
- version2.reset(new webui::UseVersion2);
-
webui::AppendJsonJS(&localized_strings_, &template_data);
callback.Run(base::RefCountedString::TakeString(&template_data));
}
« no previous file with comments | « content/browser/webui/web_ui_data_source_impl.h ('k') | content/browser/webui/web_ui_data_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698