function searchSinksAndCreateRoute(
      sinkId, searchCriteria, domain, selectedCastMode) {
    chrome.send('searchSinksAndCreateRoute', [{
                  sinkId: sinkId,
                  searchCriteria: searchCriteria,
                  domain: domain,
                  selectedCastMode: selectedCastMode
                }]);
  }
/**
   * Requests that the media router search all providers for a sink matching
   * |searchCriteria| that can be used with the media source associated with the
   * cast mode |selectedCastMode|. If such a sink is found, a route is also
   * created between the sink and the media source.
   *
   * @param {string} sinkId Sink ID of the pseudo sink generating the request.
   * @param {string} searchCriteria Search criteria for the route providers.
   * @param {string} domain User's current hosted domain.
   * @param {number} selectedCastMode The value of the cast mode to be used with
   *   the sink.
   */
Requests that the media router search all providers for a sink matching
|searchCriteria| that can be used with the media source associated with the
cast mode |selectedCastMode|. If such a sink is found, a route is also
created between the sink and the media source.

@param {string} sinkId Sink ID of the pseudo sink generating the request.
@param {string} searchCriteria Search criteria for the route providers.
@param {string} domain User's current hosted domain.
@param {number} selectedCastMode The value of the cast mode to be used with
the sink.
Requests that the media router search all providers for a sink matching |searchCriteria| that can be used with the media source associated with the cast mode |selectedCastMode| . If such a sink is found a route is also created between the sink and the media source . @param { string } sinkId Sink ID of the pseudo sink generating the request . @param { string } searchCriteria Search criteria for the route providers . @param { string } domain User ' s current hosted domain . @param { number } selectedCastMode The value of the cast mode to be used with the sink .
function searchSinksAndCreateRoute(
      sinkId, searchCriteria, domain, selectedCastMode) {
    chrome.send('searchSinksAndCreateRoute', [{
                  sinkId: sinkId,
                  searchCriteria: searchCriteria,
                  domain: domain,
                  selectedCastMode: selectedCastMode
                }]);
  }
function searchSinksAndCreateRoute ( sinkId , searchCriteria , domain , selectedCastMode ) { chrome . send ( 'searchSinksAndCreateRoute' , [ { sinkId : sinkId , searchCriteria : searchCriteria , domain : domain , selectedCastMode : selectedCastMode } ] ) ; }
Requests that the media router search all providers for a sink matching
 |searchCriteria| that can be used with the media source associated with the
 cast mode |selectedCastMode|.
Requests that the media router search all providers for a sink matching |searchCriteria| that can be used with the media source associated with the cast mode |selectedCastMode| .