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

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: Review fixes. 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 7e332d811901933f9e6a8f4cc943d60eba34a827..ae705bed9d3a8ac10b71fd0487bb55eaf5a0d5fb 100644
--- a/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc
+++ b/chrome/browser/bitmap_fetcher/bitmap_fetcher_service.cc
@@ -115,6 +115,8 @@ const chrome::BitmapFetcher* BitmapFetcherService::EnsureFetcherForUrl(
}
void BitmapFetcherService::Prefetch(const GURL& url) {
+ if (!url.is_valid())
+ return;
(void)EnsureFetcherForUrl(url);
Peter Kasting 2014/06/14 01:00:51 Nit: While here, please fix this; we disallow C-st
groby-ooo-7-16 2014/06/17 21:06:35 Fixed in base-cl. Also, inverted logic to kill ear
}
« 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