From e8035fba00f4ce5971ad80ea8be9abd363c57830 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Thu, 6 Aug 2009 01:57:56 +0000 Subject: Icon loader: respect delegate's response to NotifyDelegate call (false means the delegate doesn't assume ownership). Review URL: http://codereview.chromium.org/164038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22575 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/icon_loader.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/icon_loader.cc') diff --git a/chrome/browser/icon_loader.cc b/chrome/browser/icon_loader.cc index 75335a7..1978ca5 100644 --- a/chrome/browser/icon_loader.cc +++ b/chrome/browser/icon_loader.cc @@ -29,6 +29,6 @@ void IconLoader::Start() { } void IconLoader::NotifyDelegate() { - delegate_->OnBitmapLoaded(this, bitmap_); - bitmap_ = NULL; + if (delegate_->OnBitmapLoaded(this, bitmap_)) + bitmap_ = NULL; } -- cgit v1.1