diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-17 23:16:03 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-17 23:16:03 +0000 |
commit | e35da7489de6f9ce605a5895f47040fa8bbe9613 (patch) | |
tree | f99ebce38c6e2faa0237abc15e80f71b5656cd89 | |
parent | daef42b8024636fe6d2246ac8ede28ccc1716f3f (diff) | |
download | chromium_src-e35da7489de6f9ce605a5895f47040fa8bbe9613.zip chromium_src-e35da7489de6f9ce605a5895f47040fa8bbe9613.tar.gz chromium_src-e35da7489de6f9ce605a5895f47040fa8bbe9613.tar.bz2 |
Cleanup: Remove old checks for v8Locale APIs.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/10091021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132691 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/resources/file_manager/js/file_manager.js | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js index 1f8f9cc..256ad2d 100644 --- a/chrome/browser/resources/file_manager/js/file_manager.js +++ b/chrome/browser/resources/file_manager/js/file_manager.js @@ -449,33 +449,11 @@ FileManager.prototype = { metrics.startInterval('Load.DOM'); this.initCommands_(); - // TODO(rginda): 6/22/11: Remove this test when createDateTimeFormat is - // available in all chrome trunk builds. - if ('createDateTimeFormat' in this.locale_) { - this.shortDateFormatter_ = - this.locale_.createDateTimeFormat({'dateType': 'medium'}); - } else { - this.shortDateFormatter_ = { - format: function(d) { - return (d.getMonth() + 1) + '/' + d.getDate() + '/' + d.getFullYear(); - } - }; - } + this.shortDateFormatter_ = + this.locale_.createDateTimeFormat({'dateType': 'medium'}); - // TODO(rginda): 6/22/11: Remove this test when createCollator is - // available in all chrome trunk builds. - if ('createCollator' in this.locale_) { - this.collator_ = this.locale_.createCollator({ - 'numeric': true, 'ignoreCase': true, 'ignoreAccents': true}); - } else { - this.collator_ = { - compare: function(a, b) { - if (a > b) return 1; - if (a < b) return -1; - return 0; - } - }; - } + this.collator_ = this.locale_.createCollator({ + 'numeric': true, 'ignoreCase': true, 'ignoreAccents': true}); // Optional list of file types. this.fileTypes_ = this.params_.typeList; |