| Index: chrome/browser/resources/media_router/media_router_ui_interface.js
|
| diff --git a/chrome/browser/resources/media_router/media_router_ui_interface.js b/chrome/browser/resources/media_router/media_router_ui_interface.js
|
| index fb53eff22931c88d4b0790d2ac71ee572b1123de..4d22488bc15e2d36a81ba40d10d2de2563d93126 100644
|
| --- a/chrome/browser/resources/media_router/media_router_ui_interface.js
|
| +++ b/chrome/browser/resources/media_router/media_router_ui_interface.js
|
| @@ -22,11 +22,11 @@ cr.define('media_router.ui', function() {
|
| *
|
| * @param {string} sinkId The ID of the sink to which the Media Route was
|
| * creating a route.
|
| - * @param {?media_router.Route} route The newly create route to the sink
|
| - * if route creation succeeded; null otherwise
|
| + * @param {string} routeId The ID of the newly created route that corresponds
|
| + * to the sink if route creation succeeded; empty otherwise.
|
| */
|
| - function onCreateRouteResponseReceived(sinkId, route) {
|
| - container.onCreateRouteResponseReceived(sinkId, route);
|
| + function onCreateRouteResponseReceived(sinkId, routeId) {
|
| + container.onCreateRouteResponseReceived(sinkId, routeId);
|
| }
|
|
|
| /**
|
| @@ -215,6 +215,15 @@ cr.define('media_router.browserApi', function() {
|
| }
|
|
|
| /**
|
| + * Reports whether or not a route was created successfully.
|
| + *
|
| + * @param {boolean} success
|
| + */
|
| + function reportRouteCreation(success) {
|
| + chrome.send('reportRouteCreation', [success]);
|
| + }
|
| +
|
| + /**
|
| * Reports the cast mode that the user selected.
|
| *
|
| * @param {number} castModeType
|
| @@ -284,6 +293,7 @@ cr.define('media_router.browserApi', function() {
|
| reportInitialState: reportInitialState,
|
| reportNavigateToView: reportNavigateToView,
|
| reportSelectedCastMode: reportSelectedCastMode,
|
| + reportRouteCreation: reportRouteCreation,
|
| reportSinkCount: reportSinkCount,
|
| reportTimeToClickSink: reportTimeToClickSink,
|
| reportTimeToInitialActionClose: reportTimeToInitialActionClose,
|
|
|