summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/views/browser_actions_container.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/views/browser_actions_container.cc b/chrome/browser/views/browser_actions_container.cc
index 561df9b..a6d29f3 100644
--- a/chrome/browser/views/browser_actions_container.cc
+++ b/chrome/browser/views/browser_actions_container.cc
@@ -88,6 +88,10 @@ void BrowserActionButton::LoadImage() {
if (relative_path.empty())
return;
+ // Cancel old image trackers. We can only track one at a time.
+ if (tracker_)
+ tracker_->StopTrackingImageLoad();
+
tracker_ = new ImageLoadingTracker(this, 1);
tracker_->PostLoadImageTask(
extension()->GetResource(relative_path),