Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: extensions/renderer/resources/media_router_bindings.js

Issue 2568933003: Fix media_router_bindings.js for binary messaging. (Closed)
Patch Set: !Array<number> Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/media_router_bindings.js
diff --git a/extensions/renderer/resources/media_router_bindings.js b/extensions/renderer/resources/media_router_bindings.js
index 16c86434127cd8b3ea99a5c90fbb367606775085..c27581defda44454964506713d48d2a91c31052f 100644
--- a/extensions/renderer/resources/media_router_bindings.js
+++ b/extensions/renderer/resources/media_router_bindings.js
@@ -716,14 +716,14 @@ define('media_router_bindings', [
/**
* Sends a binary message to the route designated by |routeId|.
* @param {!string} routeId
- * @param {!Uint8Array} data
+ * @param {!Array<number>} data
* @return {!Promise.<boolean>} Resolved with true if the data was sent,
* or false on failure.
*/
MediaRouteProvider.prototype.sendRouteBinaryMessage = function(
routeId, data) {
this.handlers_.onBeforeInvokeHandler();
- return this.handlers_.sendRouteBinaryMessage(routeId, data)
+ return this.handlers_.sendRouteBinaryMessage(routeId, new Uint8Array(data))
.then(function() {
return {'sent': true};
}, function() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698