| 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 a5364fbf2b2810e36be883d8a3bb4c7fc156ca31..c970c2009353dc77722f7969f397cd3ce86cf550 100644
|
| --- a/content/browser/webui/web_ui_data_source_impl.cc
|
| +++ b/content/browser/webui/web_ui_data_source_impl.cc
|
| @@ -35,6 +35,14 @@ void WebUIDataSource::Add(BrowserContext* browser_context,
|
| URLDataManager::AddWebUIDataSource(browser_context, source);
|
| }
|
|
|
| +// static
|
| +void WebUIDataSource::Update(BrowserContext* browser_context,
|
| + const std::string& source_name,
|
| + std::unique_ptr<base::DictionaryValue> update) {
|
| + URLDataManager::UpdateWebUIDataSource(browser_context, source_name,
|
| + std::move(update));
|
| +}
|
| +
|
| // Internal class to hide the fact that WebUIDataSourceImpl implements
|
| // URLDataSource.
|
| class WebUIDataSourceImpl::InternalDataSource : public URLDataSource {
|
| @@ -176,6 +184,10 @@ void WebUIDataSourceImpl::ExcludePathFromGzip(const std::string& path) {
|
| excluded_paths_.insert(path);
|
| }
|
|
|
| +bool WebUIDataSourceImpl::IsWebUIDataSourceImpl() const {
|
| + return true;
|
| +}
|
| +
|
| void WebUIDataSourceImpl::DisableContentSecurityPolicy() {
|
| add_csp_ = false;
|
| }
|
|
|