| Index: ui/file_manager/image_loader/cache.js
|
| diff --git a/ui/file_manager/image_loader/cache.js b/ui/file_manager/image_loader/cache.js
|
| index a77a109e3ee7d2eb971a26a8a31005e5b0f67b9d..a9223c4c46073ea226d305c98adfdb5798dd3a22 100644
|
| --- a/ui/file_manager/image_loader/cache.js
|
| +++ b/ui/file_manager/image_loader/cache.js
|
| @@ -55,12 +55,13 @@ Cache.EVICTION_CHUNK_SIZE = 50 * 1024 * 1024; // 50 MB.
|
| * @return {string} Cache key.
|
| */
|
| Cache.createKey = function(request) {
|
| - return JSON.stringify({url: request.url,
|
| - scale: request.scale,
|
| - width: request.width,
|
| - height: request.height,
|
| - maxWidth: request.maxWidth,
|
| - maxHeight: request.maxHeight});
|
| + return JSON.stringify({
|
| + url: request.url,
|
| + scale: request.scale,
|
| + width: request.width,
|
| + height: request.height,
|
| + maxWidth: request.maxWidth,
|
| + maxHeight: request.maxHeight});
|
| };
|
|
|
| /**
|
| @@ -223,15 +224,15 @@ Cache.prototype.saveImage = function(key, data, timestamp) {
|
| }
|
|
|
| var onNotFoundInCache = function() {
|
| - var metadataEntry = {key: key,
|
| - timestamp: timestamp,
|
| - size: data.length,
|
| - lastLoadTimestamp: Date.now()};
|
| - var dataEntry = {key: key,
|
| - data: data};
|
| + var metadataEntry = {
|
| + key: key,
|
| + timestamp: timestamp,
|
| + size: data.length,
|
| + lastLoadTimestamp: Date.now()};
|
| + var dataEntry = {key: key, data: data};
|
|
|
| var transaction = this.db_.transaction(['settings', 'metadata', 'data'],
|
| - 'readwrite');
|
| + 'readwrite');
|
| var metadataStore = transaction.objectStore('metadata');
|
| var dataStore = transaction.objectStore('data');
|
|
|
|
|