summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/image_loading_tracker.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/image_loading_tracker.h')
-rw-r--r--chrome/browser/extensions/image_loading_tracker.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/extensions/image_loading_tracker.h b/chrome/browser/extensions/image_loading_tracker.h
index a56aaeb..23f7b71 100644
--- a/chrome/browser/extensions/image_loading_tracker.h
+++ b/chrome/browser/extensions/image_loading_tracker.h
@@ -37,7 +37,6 @@ class ImageLoadingTracker
// get deleted until we get a response from image loading (see
// ImageLoadingDone).
}
- ~ImageLoadingTracker() {}
// If there are remaining images to be loaded, the observing object should
// call this method on its destruction, so that the tracker will not attempt
@@ -56,6 +55,10 @@ class ImageLoadingTracker
private:
class LoadImageTask;
+ friend class base::RefCountedThreadSafe<ImageLoadingTracker>;
+
+ ~ImageLoadingTracker() {}
+
// When an image has finished loaded and scaled on the file thread, it is
// posted back to this method on the original thread. This method then calls
// the observer's OnImageLoaded and deletes the ImageLoadingTracker if it was