summaryrefslogtreecommitdiff
path: root/chromium/docs/webui_explainer.md
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/docs/webui_explainer.md')
-rw-r--r--chromium/docs/webui_explainer.md18
1 files changed, 6 insertions, 12 deletions
diff --git a/chromium/docs/webui_explainer.md b/chromium/docs/webui_explainer.md
index 6d247540630..f62e208a4c7 100644
--- a/chromium/docs/webui_explainer.md
+++ b/chromium/docs/webui_explainer.md
@@ -407,12 +407,12 @@ resource map can be added as follows:
```
<a name="SetupWebUIDataSource"></a>
-### webui::SetupWebUIDataSource() and webui::SetupBundledWebUIDataSource()
+### webui::SetupWebUIDataSource()
-These methods perform common configuration tasks on a data source for a Web UI
-that uses JS modules. When creating a Web UI that uses JS modules, use these
-utilities instead of duplicating the configuration steps they perform elsewhere.
-Specific setup steps performed by these utilities include:
+This method performs common configuration tasks on a data source for a Web UI
+that uses JS modules. When creating a Web UI that uses JS modules, use this
+utility instead of duplicating the configuration steps it performs elsewhere.
+Specific setup steps include:
* Setting the content security policy to allow the data source to load only
resources from its own host (e.g. chrome://history), chrome://resources, and
@@ -422,13 +422,7 @@ Specific setup steps performed by these utilities include:
* Adding the test loader files to the data source, so that test files can be
loaded as JS modules.
* Setting the resource to load for the empty path.
-
-The version for non-bundled UIs (<code>SetupWebUIDataSource()</code>) also adds
-all resources in a GritResourceMap.
-
-The version for bundled UIs (<code>SetupBundledWebUIDataSource()</code>) adds
-a single specified bundled resource. Note that this version is only defined when
-the optimize_webui build flag is enabled.
+* Adding all resources from a GritResourceMap.
## Browser (C++) &rarr; Renderer (JS)