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

Unified Diff: chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc

Issue 314013003: [AiS] Add prefetching for Answers images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@img-bridge
Patch Set: Rebase to HEAD Created 6 years, 6 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 | « chrome/browser/autocomplete/base_search_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc
diff --git a/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc b/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc
index a1878dfd5540b2b5f40bbf892d1d1c3ee55e656a..18278a6d08188629e4007f81664ab63fa9f38ff3 100644
--- a/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc
+++ b/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc
@@ -114,7 +114,8 @@ BitmapFetcherService::RequestId BitmapFetcherService::RequestImage(
}
void BitmapFetcherService::Prefetch(const GURL& url) {
- EnsureFetcherForUrl(url);
+ if (url.is_valid())
sky 2014/06/20 15:13:56 If you're going to check the url here, shouldn't y
+ EnsureFetcherForUrl(url);
}
chrome::BitmapFetcher* BitmapFetcherService::CreateFetcher(const GURL& url) {
« no previous file with comments | « chrome/browser/autocomplete/base_search_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698