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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/file_manager/file_manager/background/js/device_handler.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 'use strict'; 5 'use strict';
6 6
7 /** 7 /**
8 * Represents each volume, such as "drive", "download directory", each "USB 8 * Represents each volume, such as "drive", "download directory", each "USB
9 * flush storage", or "mounted zip archive" etc. 9 * flush storage", or "mounted zip archive" etc.
10 * 10 *
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 * @private 572 * @private
573 */ 573 */
574 VolumeManager.prototype.onMountCompleted_ = function(event) { 574 VolumeManager.prototype.onMountCompleted_ = function(event) {
575 this.mountQueue_.run(function(callback) { 575 this.mountQueue_.run(function(callback) {
576 switch (event.eventType) { 576 switch (event.eventType) {
577 case 'mount': 577 case 'mount':
578 var requestKey = this.makeRequestKey_( 578 var requestKey = this.makeRequestKey_(
579 'mount', 579 'mount',
580 event.volumeMetadata.sourcePath); 580 event.volumeMetadata.sourcePath);
581 581
582 var error = event.status === 'success' ? '' : event.status; 582 if (event.status === 'success' ||
583 if (!error || event.status === 'error_unknown_filesystem') { 583 event.status ===
584 VolumeManagerCommon.VolumeError.UNKNOWN_FILESYSTEM ||
585 event.status ===
586 VolumeManagerCommon.VolumeError.UNSUPPORTED_FILESYSTEM) {
584 volumeManagerUtil.createVolumeInfo( 587 volumeManagerUtil.createVolumeInfo(
585 event.volumeMetadata, 588 event.volumeMetadata,
586 function(volumeInfo) { 589 function(volumeInfo) {
587 this.volumeInfoList.add(volumeInfo); 590 this.volumeInfoList.add(volumeInfo);
588 this.finishRequest_(requestKey, event.status, volumeInfo); 591 this.finishRequest_(requestKey, event.status, volumeInfo);
589 592
590 if (volumeInfo.volumeType === 593 if (volumeInfo.volumeType ===
591 VolumeManagerCommon.VolumeType.DRIVE) { 594 VolumeManagerCommon.VolumeType.DRIVE) {
592 // Update the network connection status, because until the 595 // Update the network connection status, because until the
593 // drive is initialized, the status is set to not ready. 596 // drive is initialized, the status is set to not ready.
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 this.isDriveBased; 911 this.isDriveBased;
909 912
910 /** 913 /**
911 * Whether the entry is read only or not. 914 * Whether the entry is read only or not.
912 * @type {boolean} 915 * @type {boolean}
913 */ 916 */
914 this.isReadOnly = isReadOnly; 917 this.isReadOnly = isReadOnly;
915 918
916 Object.freeze(this); 919 Object.freeze(this);
917 } 920 }
OLDNEW
« 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