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)); |
} |