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

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: 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..dc7535fbde955127fee82cea0c7a3e46c800a2cc 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);
@@ -353,6 +352,7 @@ ImageLoader.Client.Cache.prototype.removeImage = function(key) {
*/
ImageLoader.Client.loadToImage = function(url, image, options, onSuccess,
onError, opt_isValid) {
+ options.cache = false;
var callback = function(result) {
if (result.status == 'error') {
onError();

Powered by Google App Engine
This is Rietveld 408576698