function fillMostVisited(location, fill) {
  var params = parseQueryParams(location);
  params.rid = parseInt(params.rid, 10);
  if (!isFinite(params.rid))
    return;
  var data =
      chrome.embeddedSearch.newTabPage.getMostVisitedItemData(params.rid);
  if (!data)
    return;
  if (data.url && !isSchemeAllowed(data.url))
    return;

  if (isFinite(params.dummy) && parseInt(params.dummy, 10))
    data.dummy = true;

  if (data.direction)
    document.body.dir = data.direction;
  fill(params, data);
}
/**
 * @param {string} location A location containing URL parameters.
 * @param {function(Object, Object)} fill A function called with styles and
 *     data to fill.
 */
@param {string} location A location containing URL parameters.
@param {function(Object, Object)} fill A function called with styles and
data to fill.
@param { string } location A location containing URL parameters . @param { function ( Object Object ) } fill A function called with styles and data to fill .
function fillMostVisited(location, fill) {
  var params = parseQueryParams(location);
  params.rid = parseInt(params.rid, 10);
  if (!isFinite(params.rid))
    return;
  var data =
      chrome.embeddedSearch.newTabPage.getMostVisitedItemData(params.rid);
  if (!data)
    return;
  if (data.url && !isSchemeAllowed(data.url))
    return;
  if (isFinite(params.dummy) && parseInt(params.dummy, 10))
    data.dummy = true;
  if (data.direction)
    document.body.dir = data.direction;
  fill(params, data);
}
function fillMostVisited ( location , fill ) { var params = parseQueryParams ( location ) ; params . rid = parseInt ( params . rid , 10 ) ; if ( ! isFinite ( params . rid ) ) return ; var data = chrome . embeddedSearch . newTabPage . getMostVisitedItemData ( params . rid ) ; if ( ! data ) return ; if ( data . url && ! isSchemeAllowed ( data . url ) ) return ; if ( isFinite ( params . dummy ) && parseInt ( params . dummy , 10 ) ) data . dummy = true ; if ( data . direction ) document . body . dir = data . direction ; fill ( params , data ) ; }
@param {string} location A location containing URL parameters.
@param { string } location A location containing URL parameters .