summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/renderer/resources/media_router_bindings.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/renderer/resources/media_router_bindings.js b/extensions/renderer/resources/media_router_bindings.js
index b6252c5..cfb36f1 100644
--- a/extensions/renderer/resources/media_router_bindings.js
+++ b/extensions/renderer/resources/media_router_bindings.js
@@ -265,9 +265,13 @@ define('media_router_bindings', [
* updated.
* @param {!string} sourceUrn
* @param {!Array<!MediaSink>} sinks
+ * @param {Array<string>=} opt_origins
*/
- MediaRouter.prototype.onSinksReceived = function(sourceUrn, sinks) {
- this.service_.onSinksReceived(sourceUrn, sinks.map(sinkToMojo_));
+ MediaRouter.prototype.onSinksReceived = function(sourceUrn, sinks,
+ opt_origins) {
+ // TODO(imcheng): Make origins required in M52+.
+ this.service_.onSinksReceived(sourceUrn, sinks.map(sinkToMojo_),
+ opt_origins || []);
};
/**