Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2297)

Unified Diff: chrome/browser/search/thumbnail_source.cc

Issue 2881753002: TopSites: various small cleanups (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/history/core/browser/top_sites.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/thumbnail_source.cc
diff --git a/chrome/browser/search/thumbnail_source.cc b/chrome/browser/search/thumbnail_source.cc
index 95bfd6a20304832514dab7b46a89b776bc0adfb6..2331ee0b1adbc68c205a50ceb56026989c16ac7a 100644
--- a/chrome/browser/search/thumbnail_source.cc
+++ b/chrome/browser/search/thumbnail_source.cc
@@ -41,9 +41,9 @@ void ThumbnailSource::StartDataRequest(
ExtractPageAndThumbnailUrls(path, &page_url, &fallback_thumbnail_url);
scoped_refptr<base::RefCountedMemory> data;
- if (page_url.is_valid() &&
- thumbnail_service_->GetPageThumbnail(page_url, capture_thumbnails_,
- &data)) {
+ if (page_url.is_valid() && thumbnail_service_->GetPageThumbnail(
+ page_url,
+ /*prefix_match=*/capture_thumbnails_, &data)) {
// If a local thumbnail is available for the page's URL, provide it.
callback.Run(data.get());
} else if (fallback_thumbnail_url.is_valid()) {
« no previous file with comments | « no previous file | components/history/core/browser/top_sites.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698