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

Unified Diff: chrome/browser/resources/image_loader/client.js

Issue 14623021: Introduce a priority queue to the image loader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up. Created 7 years, 7 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/resources/image_loader/client.js
diff --git a/chrome/browser/resources/image_loader/client.js b/chrome/browser/resources/image_loader/client.js
index 5a1e3c138b000bbaf531ca6e48c4c5df068f4a91..8d80ec72f3e6eddd984ca3c0e8955f259e78995d 100644
--- a/chrome/browser/resources/image_loader/client.js
+++ b/chrome/browser/resources/image_loader/client.js
@@ -269,7 +269,6 @@ ImageLoader.Client.Cache.prototype.evictCache_ = function(size) {
*/
ImageLoader.Client.Cache.prototype.saveImage = function(
key, data, opt_timestamp) {
-
// If the image is currently in cache, then remove it.
if (this.images_[key])
this.removeImage(key);

Powered by Google App Engine
This is Rietveld 408576698