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

Unified Diff: components/suggestions/image_fetcher_delegate.h

Issue 689993004: [Suggestions Component] Add missing NULL check to ImageManager::OnImageFetched(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/suggestions/image_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/suggestions/image_fetcher_delegate.h
diff --git a/components/suggestions/image_fetcher_delegate.h b/components/suggestions/image_fetcher_delegate.h
index f2335efe026284aa99307b3ff00d63ab7fd45c83..69fbb869bbeccdd5735d4726436cfd2a1f595aba 100644
--- a/components/suggestions/image_fetcher_delegate.h
+++ b/components/suggestions/image_fetcher_delegate.h
@@ -15,7 +15,8 @@ class ImageFetcherDelegate {
ImageFetcherDelegate() {}
// Called when an image was fetched. |url| represents the website for which
- // the image was fetched. |bitmap| is deleted once out of scope.
+ // the image was fetched. |bitmap| stores image data owned by the caller, and
+ // can be nullptr.
virtual void OnImageFetched(const GURL& url, const SkBitmap* bitmap) = 0;
protected:
« no previous file with comments | « no previous file | components/suggestions/image_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698