summaryrefslogtreecommitdiffstats
path: root/chrome/browser/icon_loader.cc
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 01:57:56 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 01:57:56 +0000
commite8035fba00f4ce5971ad80ea8be9abd363c57830 (patch)
treef4ed9d5eaf13e42211a2e718a56098f211481c4e /chrome/browser/icon_loader.cc
parent313df978024b5b70ba266e5667d1da00f64aadd4 (diff)
downloadchromium_src-e8035fba00f4ce5971ad80ea8be9abd363c57830.zip
chromium_src-e8035fba00f4ce5971ad80ea8be9abd363c57830.tar.gz
chromium_src-e8035fba00f4ce5971ad80ea8be9abd363c57830.tar.bz2
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
Diffstat (limited to 'chrome/browser/icon_loader.cc')
-rw-r--r--chrome/browser/icon_loader.cc4
1 files changed, 2 insertions, 2 deletions
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;
}