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

Unified Diff: chrome/browser/resources/file_manager/js/photo/slide_mode.js

Issue 12212127: [cleanup] Files.app: Remove Function declarations within blocks #3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « chrome/browser/resources/file_manager/js/metadata/exif_parser.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/photo/slide_mode.js
diff --git a/chrome/browser/resources/file_manager/js/photo/slide_mode.js b/chrome/browser/resources/file_manager/js/photo/slide_mode.js
index 2b7e989bb73cff2330f57d5e3b8f311ad0afd10d..e40c32a1a4e7f9890fa0ecd8feb654637d38646c 100644
--- a/chrome/browser/resources/file_manager/js/photo/slide_mode.js
+++ b/chrome/browser/resources/file_manager/js/photo/slide_mode.js
@@ -645,7 +645,9 @@ SlideMode.prototype.loadItem_ = function(
} else {
ImageUtil.metrics.recordUserAction(ImageUtil.getMetricName('View'));
- function toMillions(number) { return Math.round(number / (1000 * 1000)) }
+ var toMillions = function(number) {
+ return Math.round(number / (1000 * 1000));
+ };
ImageUtil.metrics.recordSmallCount(ImageUtil.getMetricName('Size.MB'),
toMillions(metadata.filesystem.size));
« no previous file with comments | « chrome/browser/resources/file_manager/js/metadata/exif_parser.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698