Index: ui/file_manager/file_manager/common/js/volume_manager_common.js |
diff --git a/ui/file_manager/file_manager/common/js/volume_manager_common.js b/ui/file_manager/file_manager/common/js/volume_manager_common.js |
index 46a1a07bfe353f01961c84efa536d731768cf3cb..61d37db7df1db94d0bf14765ef6cdb9285f0dcc9 100644 |
--- a/ui/file_manager/file_manager/common/js/volume_manager_common.js |
+++ b/ui/file_manager/file_manager/common/js/volume_manager_common.js |
@@ -32,6 +32,9 @@ VolumeManagerCommon.RootType = { |
// Root for a provided volume. |
PROVIDED: 'provided', |
+ // Root for plugin provided volume. |
+ PLUGIN_PROVIDED: 'plugin_provided', |
+ |
// Root for entries that is not located under RootType.DRIVE. e.g. shared |
// files. |
DRIVE_OTHER: 'drive_other', |
@@ -121,7 +124,8 @@ VolumeManagerCommon.VolumeType = { |
REMOVABLE: 'removable', |
ARCHIVE: 'archive', |
MTP: 'mtp', |
- PROVIDED: 'provided' |
+ PROVIDED: 'provided', |
+ PLUGIN_PROVIDED: 'plugin_provided' |
}; |
/** |
@@ -173,6 +177,8 @@ VolumeManagerCommon.getVolumeTypeFromRootType = function(rootType) { |
return VolumeManagerCommon.VolumeType.MTP; |
case VolumeManagerCommon.RootType.PROVIDED: |
return VolumeManagerCommon.VolumeType.PROVIDED; |
+ case VolumeManagerCommon.RootType.PLUGIN_PROVIDED: |
+ return VolumeManagerCommon.VolumeType.PLUGIN_PROVIDED; |
} |
assertNotReached('Unknown root type: ' + rootType); |
}; |