diff options
Diffstat (limited to 'chrome/browser/history/top_sites_cache.cc')
-rw-r--r-- | chrome/browser/history/top_sites_cache.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/history/top_sites_cache.cc b/chrome/browser/history/top_sites_cache.cc index 828b7014..3be7041 100644 --- a/chrome/browser/history/top_sites_cache.cc +++ b/chrome/browser/history/top_sites_cache.cc @@ -47,6 +47,17 @@ bool TopSitesCache::GetPageThumbnail(const GURL& url, return false; } +bool TopSitesCache::GetPageThumbnailScore(const GURL& url, + ThumbnailScore* score) { + std::map<GURL, Images>::const_iterator found = + images_.find(GetCanonicalURL(url)); + if (found != images_.end()) { + *score = found->second.thumbnail_score; + return true; + } + return false; +} + GURL TopSitesCache::GetCanonicalURL(const GURL& url) { CanonicalURLs::iterator i = TopSitesCache::GetCanonicalURLsIterator(url); return i == canonical_urls_.end() ? url : i->first.first->url; |