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

Unified Diff: chrome/browser/resources/file_manager/js/exif_parser.js

Issue 7465084: Minor bugs in Exif parser. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 5 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/byte_reader.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/exif_parser.js
diff --git a/chrome/browser/resources/file_manager/js/exif_parser.js b/chrome/browser/resources/file_manager/js/exif_parser.js
index af04882328115ce74cc300b2392d5f49cd2896a1..b58259efe98283070aa0337c4173df19b3e6c0cb 100644
--- a/chrome/browser/resources/file_manager/js/exif_parser.js
+++ b/chrome/browser/resources/file_manager/js/exif_parser.js
@@ -249,9 +249,11 @@ ExifParser.prototype.readTagValue = function(br, tag) {
case 2: // String
safeRead(1);
- tag.value = tag.value.map(
- function(v) { return String.fromCharCode(v) });
- tag.value = tag.value.join('');
+ if (tag.componentCount == 1) {
+ tag.value = String.fromCharCode(tag.value);
+ } else {
+ tag.value = String.fromCharCode.apply(null, tag.value);
+ }
break;
case 3: // Short
« no previous file with comments | « chrome/browser/resources/file_manager/js/byte_reader.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698