function routeToMojo_(route) {
  return new mediaRouter.mojom.MediaRoute({
    'mediaRouteId': route.id,
    'mediaSource': route.mediaSource,
    'mediaSinkId': route.sinkId,
    'description': route.description,
    'iconUrl': route.iconUrl,
    'isLocal': route.isLocal,
    'forDisplay': route.forDisplay,
    'isIncognito': route.offTheRecord,
    'isLocalPresentation': route.isOffscreenPresentation,
    'controllerType': route.controllerType,
    // Begin newly added properties, followed by the milestone they were
    // added.  The guard should be safe to remove N+2 milestones later.
    'presentationId': route.presentationId || ''  // M64
  });
}
/**
 * Returns a Mojo MediaRoute object given a MediaRoute and a
 * media sink name.
 * @param {!MediaRoute} route
 * @return {!mediaRouter.mojom.MediaRoute}
 */
Returns a Mojo MediaRoute object given a MediaRoute and a
media sink name.
Returns a Mojo MediaRoute object given a MediaRoute and a media sink name .
function routeToMojo_(route) {
  return new mediaRouter.mojom.MediaRoute({
    'mediaRouteId': route.id,
    'mediaSource': route.mediaSource,
    'mediaSinkId': route.sinkId,
    'description': route.description,
    'iconUrl': route.iconUrl,
    'isLocal': route.isLocal,
    'forDisplay': route.forDisplay,
    'isIncognito': route.offTheRecord,
    'isLocalPresentation': route.isOffscreenPresentation,
    'controllerType': route.controllerType,
    'presentationId': route.presentationId || ''  
  });
}
function routeToMojo_ ( route ) { return new mediaRouter . mojom . MediaRoute ( { 'mediaRouteId' : route . id , 'mediaSource' : route . mediaSource , 'mediaSinkId' : route . sinkId , 'description' : route . description , 'iconUrl' : route . iconUrl , 'isLocal' : route . isLocal , 'forDisplay' : route . forDisplay , 'isIncognito' : route . offTheRecord , 'isLocalPresentation' : route . isOffscreenPresentation , 'controllerType' : route . controllerType , 'presentationId' : route . presentationId || '' } ) ; }
Returns a Mojo MediaRoute object given a MediaRoute and a
 media sink name.
Returns a Mojo MediaRoute object given a MediaRoute and a media sink name .
// Begin newly added properties, followed by the milestone they were // added.  The guard should be safe to remove N+2 milestones later. // M64