| Index: chrome/browser/ui/webui/mojo_web_ui_controller.cc
|
| diff --git a/chrome/browser/ui/webui/mojo_web_ui_controller.cc b/chrome/browser/ui/webui/mojo_web_ui_controller.cc
|
| index bccc2912c5734ce206c3bf6a5341238054c90ed9..286fcc1c4d9d8d350f4487ed499a14f75088be6c 100644
|
| --- a/chrome/browser/ui/webui/mojo_web_ui_controller.cc
|
| +++ b/chrome/browser/ui/webui/mojo_web_ui_controller.cc
|
| @@ -22,3 +22,12 @@
|
| content::RenderViewHost* render_view_host) {
|
| render_view_host->AllowBindings(content::BINDINGS_POLICY_WEB_UI);
|
| }
|
| +
|
| +void MojoWebUIControllerBase::AddMojoResourcePath(const std::string& path,
|
| + int resource_id) {
|
| + if (!mojo_data_source_) {
|
| + mojo_data_source_ = content::WebUIDataSource::AddMojoDataSource(
|
| + Profile::FromWebUI(web_ui()));
|
| + }
|
| + mojo_data_source_->AddResourcePath(path, resource_id);
|
| +}
|
|
|