Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Unified Diff: chrome/browser/extensions/image_loading_tracker.cc

Issue 10820049: Load 2x resources on demand (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For preview Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/image_loading_tracker.cc
diff --git a/chrome/browser/extensions/image_loading_tracker.cc b/chrome/browser/extensions/image_loading_tracker.cc
index 7e620e634a8279c6b287ced46d22d76df82a5a76..9eb5b33cb405960263ed0e23a7efd830cf04af89 100644
--- a/chrome/browser/extensions/image_loading_tracker.cc
+++ b/chrome/browser/extensions/image_loading_tracker.cc
@@ -372,8 +372,10 @@ void ImageLoadingTracker::OnBitmapLoaded(
gfx::Image image;
std::string extension_id = info->extension_id;
- if (!info->image_skia.isNull())
+ if (!info->image_skia.isNull()) {
+ info->image_skia.SetReadOnly();
image = gfx::Image(info->image_skia);
+ }
load_map_.erase(load_map_it);

Powered by Google App Engine
This is Rietveld 408576698