Index: chrome/browser/resources/file_manager/js/file_manager.js |
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js |
index 7d9128c9cf6f1d1052674348a1d92f547c7d53ce..b032f5e9e02ee12c79bb8824c7435e8a0e1846d2 100644 |
--- a/chrome/browser/resources/file_manager/js/file_manager.js |
+++ b/chrome/browser/resources/file_manager/js/file_manager.js |
@@ -1412,14 +1412,18 @@ DialogType.isModal = function(type) { |
var rootType = PathUtil.getRootType(path); |
+ var iconDiv = this.document_.createElement('div'); |
+ iconDiv.className = 'volume-icon'; |
+ iconDiv.setAttribute('volume-type-icon', rootType); |
+ if (rootType === RootType.REMOVABLE) { |
+ iconDiv.setAttribute('volume-subtype', |
+ this.volumeManager_.getDeviceType(path)); |
+ } |
+ li.appendChild(iconDiv); |
+ |
var div = this.document_.createElement('div'); |
div.className = 'root-label'; |
- div.setAttribute('volume-type-icon', rootType); |
- if (rootType === RootType.REMOVABLE) |
- div.setAttribute('volume-subtype', |
- this.volumeManager_.getDeviceType(path)); |
- |
div.textContent = PathUtil.getRootLabel(path); |
li.appendChild(div); |