groups.push(NHQO.GROUP_BY_DAY); groups.push(NHQO.GROUP_BY_HOST); 
function searchHistory(aInput){  var query = PlacesUtils.history.getNewQuery();  var options = PlacesUtils.history.getNewQueryOptions();  const NHQO = Ci.nsINavHistoryQueryOptions;  var sortingMode;  var groups = [];   var resultType;  if (aInput) {    query.searchTerms = aInput;    sortingMode = NHQO.SORT_BY_TITLE_ASCENDING;    resultType = NHQO.RESULTS_AS_URI;  }  else {    switch (gHistoryGrouping) {      case "site":        resultType = NHQO.RESULTS_AS_URI;        sortingMode = NHQO.SORT_BY_TITLE_ASCENDING;        break;       case "visited":        resultType = NHQO.RESULTS_AS_URI;        sortingMode = NHQO.SORT_BY_VISITCOUNT_DESCENDING;        break;       case "lastvisited":        resultType = NHQO.RESULTS_AS_URI;        sortingMode = NHQO.SORT_BY_DATE_DESCENDING;        break;       case "dayandsite":        resultType = NHQO.RESULTS_AS_VISIT;        groups.push(NHQO.GROUP_BY_DAY);        groups.push(NHQO.GROUP_BY_HOST);        sortingMode = NHQO.SORT_BY_TITLE_ASCENDING;        break;      default:        resultType = NHQO.RESULTS_AS_VISIT;        groups.push(NHQO.GROUP_BY_DAY);        sortingMode = NHQO.SORT_BY_TITLE_ASCENDING;        break;    }  }  options.setGroupingMode(groups, groups.length);  options.sortingMode = sortingMode;  options.resultType = resultType;  // call load() on the tree manually  // instead of setting the place attribute in history-panel.xul  // otherwise, we will end up calling load() twice  gHistoryTree.load([query], options);}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/f4dc22d3449d3748bba6c262579db901065fc948/history-panel.js/clean/browser/components/places/content/history-panel.js