Index: chrome/browser/history/top_sites_cache.cc |
diff --git a/chrome/browser/history/top_sites_cache.cc b/chrome/browser/history/top_sites_cache.cc |
index 828b701468b8b8645b497dbbf7ae96dcda540654..3be70415d23caf68ca62c1b10d9fdd020e484eb2 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; |