Index: chrome/browser/resources/file_manager/js/file_manager.js |
=================================================================== |
--- chrome/browser/resources/file_manager/js/file_manager.js (revision 138460) |
+++ chrome/browser/resources/file_manager/js/file_manager.js (working copy) |
@@ -46,9 +46,6 @@ |
FileManager.DialogType.SELECT_OPEN_MULTI_FILE, |
FileManager.DialogType.FULL_PAGE]); |
- // TODO(dgozman): This will be changed to LocaleInfo. |
- this.locale_ = new v8Locale(navigator.language); |
- |
this.initFileSystem_(); |
this.volumeManager_ = VolumeManager.getInstance(); |
this.initDom_(); |
@@ -438,15 +435,14 @@ |
this.metadataCache_ = MetadataCache.createFull(); |
this.dateFormatter_ = v8Intl.DateTimeFormat( |
- {} /* default locale */, |
+ [] /* default locale */, |
{year: 'numeric', month: 'short', day: 'numeric', |
hour: 'numeric', minute: 'numeric'}); |
this.timeFormatter_ = v8Intl.DateTimeFormat( |
- {} /* default locale */, |
+ [] /* default locale */, |
{hour: 'numeric', minute: 'numeric'}); |
- this.collator_ = this.locale_.createCollator({ |
- 'numeric': true, 'ignoreCase': true, 'ignoreAccents': true}); |
+ this.collator_ = v8Intl.Collator([], {numeric: true, sensitivity: 'base'}); |
// Optional list of file types. |
this.fileTypes_ = this.params_.typeList; |