topSites property

JSTopSites get topSites

Use the chrome.topSites API to access the top sites (i.e. most visited sites) that are displayed on the new tab page. These do not include shortcuts customized by the user.

Implementation

JSTopSites get topSites {
  var topSitesNullable = this.topSitesNullable;
  if (topSitesNullable == null) {
    throw ApiNotAvailableException('chrome.topSites');
  }
  return topSitesNullable;
}