summaryrefslogtreecommitdiffstats
path: root/extensions/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/renderer')
-rw-r--r--extensions/renderer/resources/media_router_bindings.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/renderer/resources/media_router_bindings.js b/extensions/renderer/resources/media_router_bindings.js
index 0b0bee0..ebb668c 100644
--- a/extensions/renderer/resources/media_router_bindings.js
+++ b/extensions/renderer/resources/media_router_bindings.js
@@ -130,7 +130,7 @@ define('media_router_bindings', [
function presentationConnectionCloseReasonToMojo_(reason) {
var PresentationConnectionCloseReason =
mediaRouterMojom.MediaRouter.PresentationConnectionCloseReason;
- switch (state) {
+ switch (reason) {
case 'error':
return PresentationConnectionCloseReason.CONNECTION_ERROR;
case 'closed':
@@ -392,7 +392,7 @@ define('media_router_bindings', [
MediaRouter.prototype.onPresentationConnectionClosed =
function(routeId, reason, message) {
this.service_.onPresentationConnectionClosed(
- routeId, presentationConnectionCloseReasonToMojo_(state), message);
+ routeId, presentationConnectionCloseReasonToMojo_(reason), message);
};
/**