Commit dca81143 authored by mark a. foltz's avatar mark a. foltz Committed by Commit Bot

[Media Router] Fix mojom imports for media_router_bindings.js.

r594911 added unguessable_token.mojom as a dependendy of origin.mojom.

This imports the JS bindings for unguessable_token.mojom into the
Media Router component extension bindings to prevent a JS exception
when validating a message that includes an Origin.

Bug: 890916
Change-Id: I83426296abbf911587367ffbd0b002a6c1525522
Reviewed-on: https://chromium-review.googlesource.com/1255585
Commit-Queue: mark a. foltz <mfoltz@chromium.org>
Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: default avatarIstiaque Ahmed <lazyboy@chromium.org>
Reviewed-by: default avatarTakumi Fujimoto <takumif@chromium.org>
Cr-Commit-Position: refs/heads/master@{#595686}
parent 0c221f1e
...@@ -272,6 +272,8 @@ void ChromeExtensionsDispatcherDelegate::PopulateSourceMap( ...@@ -272,6 +272,8 @@ void ChromeExtensionsDispatcherDelegate::PopulateSourceMap(
IDR_MEDIA_ROUTER_BINDINGS_JS); IDR_MEDIA_ROUTER_BINDINGS_JS);
source_map->RegisterSource("mojo/public/mojom/base/time.mojom", source_map->RegisterSource("mojo/public/mojom/base/time.mojom",
IDR_MOJO_TIME_MOJOM_JS); IDR_MOJO_TIME_MOJOM_JS);
source_map->RegisterSource("mojo/public/mojom/base/unguessable_token.mojom",
IDR_MOJO_UNGUESSABLE_TOKEN_MOJOM_JS);
source_map->RegisterSource("net/interfaces/ip_address.mojom", source_map->RegisterSource("net/interfaces/ip_address.mojom",
IDR_MOJO_IP_ADDRESS_MOJOM_JS); IDR_MOJO_IP_ADDRESS_MOJOM_JS);
source_map->RegisterSource("net/interfaces/ip_endpoint.mojom", source_map->RegisterSource("net/interfaces/ip_endpoint.mojom",
......
...@@ -20,6 +20,7 @@ loadScript('extensions/common/mojo/keep_alive.mojom'); ...@@ -20,6 +20,7 @@ loadScript('extensions/common/mojo/keep_alive.mojom');
loadScript('media/mojo/interfaces/mirror_service_remoting.mojom'); loadScript('media/mojo/interfaces/mirror_service_remoting.mojom');
loadScript('media/mojo/interfaces/remoting_common.mojom'); loadScript('media/mojo/interfaces/remoting_common.mojom');
loadScript('mojo/public/mojom/base/time.mojom'); loadScript('mojo/public/mojom/base/time.mojom');
loadScript('mojo/public/mojom/base/unguessable_token.mojom');
loadScript('net/interfaces/ip_address.mojom'); loadScript('net/interfaces/ip_address.mojom');
loadScript('net/interfaces/ip_endpoint.mojom'); loadScript('net/interfaces/ip_endpoint.mojom');
loadScript('url/mojom/origin.mojom'); loadScript('url/mojom/origin.mojom');
......
...@@ -91,6 +91,7 @@ ...@@ -91,6 +91,7 @@
<include name="IDR_MIRRORING_SESSION_OBSERVER_MOJOM_JS" file="${mojom_root}\components\mirroring\mojom\session_observer.mojom.js" use_base_dir="false" type="BINDATA" /> <include name="IDR_MIRRORING_SESSION_OBSERVER_MOJOM_JS" file="${mojom_root}\components\mirroring\mojom\session_observer.mojom.js" use_base_dir="false" type="BINDATA" />
<include name="IDR_MIRRORING_SESSION_PARAMETERS_JS" file="${mojom_root}\components\mirroring\mojom\session_parameters.mojom.js" use_base_dir="false" type="BINDATA" /> <include name="IDR_MIRRORING_SESSION_PARAMETERS_JS" file="${mojom_root}\components\mirroring\mojom\session_parameters.mojom.js" use_base_dir="false" type="BINDATA" />
<include name="IDR_MOJO_TIME_MOJOM_JS" file="${mojom_root}\mojo\public\mojom\base\time.mojom.js" use_base_dir="false" type="BINDATA" /> <include name="IDR_MOJO_TIME_MOJOM_JS" file="${mojom_root}\mojo\public\mojom\base\time.mojom.js" use_base_dir="false" type="BINDATA" />
<include name="IDR_MOJO_UNGUESSABLE_TOKEN_MOJOM_JS" file="${mojom_root}\mojo\public\mojom\base\unguessable_token.mojom.js" use_base_dir="false" type="BINDATA" />
<include name="IDR_MOJO_IP_ADDRESS_MOJOM_JS" file="${mojom_root}\net\interfaces\ip_address.mojom.js" use_base_dir="false" type="BINDATA" /> <include name="IDR_MOJO_IP_ADDRESS_MOJOM_JS" file="${mojom_root}\net\interfaces\ip_address.mojom.js" use_base_dir="false" type="BINDATA" />
<include name="IDR_MOJO_IP_ENDPOINT_MOJOM_JS" file="${mojom_root}\net\interfaces\ip_endpoint.mojom.js" use_base_dir="false" type="BINDATA" /> <include name="IDR_MOJO_IP_ENDPOINT_MOJOM_JS" file="${mojom_root}\net\interfaces\ip_endpoint.mojom.js" use_base_dir="false" type="BINDATA" />
<include name="IDR_ORIGIN_MOJOM_JS" file="${mojom_root}\url\mojom\origin.mojom.js" use_base_dir="false" type="BINDATA" /> <include name="IDR_ORIGIN_MOJOM_JS" file="${mojom_root}\url\mojom\origin.mojom.js" use_base_dir="false" type="BINDATA" />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment