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

Unified Diff: ui/file_manager/file_manager/background/js/volume_manager.js

Issue 409353002: Files.app: handle UNSUPPORTED_FILESYSTEM errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 6 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 | « ui/file_manager/file_manager/background/js/device_handler.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/background/js/volume_manager.js
diff --git a/ui/file_manager/file_manager/background/js/volume_manager.js b/ui/file_manager/file_manager/background/js/volume_manager.js
index bdcbee12ea44878832227b7908895697ae672846..1abcec03435b16cbda6efab9ff407e8424a2bc04 100644
--- a/ui/file_manager/file_manager/background/js/volume_manager.js
+++ b/ui/file_manager/file_manager/background/js/volume_manager.js
@@ -579,8 +579,11 @@ VolumeManager.prototype.onMountCompleted_ = function(event) {
'mount',
event.volumeMetadata.sourcePath);
- var error = event.status === 'success' ? '' : event.status;
- if (!error || event.status === 'error_unknown_filesystem') {
+ if (event.status === 'success' ||
+ event.status ===
+ VolumeManagerCommon.VolumeError.UNKNOWN_FILESYSTEM ||
+ event.status ===
+ VolumeManagerCommon.VolumeError.UNSUPPORTED_FILESYSTEM) {
volumeManagerUtil.createVolumeInfo(
event.volumeMetadata,
function(volumeInfo) {
« no previous file with comments | « ui/file_manager/file_manager/background/js/device_handler.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698