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

Unified Diff: ui/file_manager/image_loader/cache.js

Issue 571453002: Correct indentation, JSDoc, etc... to comply with closure linter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
« no previous file with comments | « ui/file_manager/gallery/js/slide_mode.js ('k') | ui/file_manager/image_loader/image_loader.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
« no previous file with comments | « ui/file_manager/gallery/js/slide_mode.js ('k') | ui/file_manager/image_loader/image_loader.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698