Description[Suggestions Component] Add missing NULL check to ImageManager::OnImageFetched().
This fixes crashing bug. The check should be in ImageManager::OnImageFetched()
instead of ImageFetcherImpl::OnFetchComplete(). Indeed, the unit test in
image_fetcher_impl_browsertest.cc also allows it.
Also added extra non-NULL DCHECK in ImageManager::GetImageURL(), and
verified that current callers do not passing NULL to it.
BUG=428117
TBR=mathp
Committed: https://crrev.com/53313374f1ee883f825be0ac5f879d171be57a29
Cr-Commit-Position: refs/heads/master@{#302258}
Patch Set 1 #
Messages
Total messages: 11 (4 generated)
|