| 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 5b258e359b3472cc3976cf05e2074a22a0f1f65c..f423dfe7af861ed2bd29b3d6703d774709d46d4e 100644
|
| --- a/content/browser/webui/web_ui_data_source_impl.cc
|
| +++ b/content/browser/webui/web_ui_data_source_impl.cc
|
| @@ -73,9 +73,7 @@ class WebUIDataSourceImpl::InternalDataSource : public URLDataSource {
|
| return parent_->deny_xframe_options_;
|
| }
|
| bool IsGzipped(const std::string& path) const override {
|
| - if (!parent_->json_path_.empty() && path == parent_->json_path_)
|
| - return false;
|
| - return parent_->use_gzip_for_all_paths_;
|
| + return parent_->IsGzipped(path);
|
| }
|
|
|
| private:
|
| @@ -187,6 +185,12 @@ void WebUIDataSourceImpl::DisableI18nAndUseGzipForAllPaths() {
|
| use_gzip_for_all_paths_ = true;
|
| }
|
|
|
| +bool WebUIDataSourceImpl::IsGzipped(const std::string& path) const {
|
| + if (!json_path_.empty() && path == json_path_)
|
| + return false;
|
| + return use_gzip_for_all_paths_;
|
| +}
|
| +
|
| std::string WebUIDataSourceImpl::GetSource() const {
|
| return source_name_;
|
| }
|
|
|