OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 /** | 5 /** |
6 * Thin wrapper for VolumeManager. This should be an interface proxy to talk | 6 * Thin wrapper for VolumeManager. This should be an interface proxy to talk |
7 * to VolumeManager. This class also filters Drive related data/events if | 7 * to VolumeManager. This class also filters Drive related data/events if |
8 * driveEnabled is set to false. | 8 * driveEnabled is set to false. |
9 * | 9 * |
10 * @param {VolumeManagerWrapper.DriveEnabledStatus} driveEnabled DRIVE_ENABLED | 10 * @param {VolumeManagerWrapper.DriveEnabledStatus} driveEnabled DRIVE_ENABLED |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 281 |
282 // If the drive is disabled, any resolving the path under drive should be | 282 // If the drive is disabled, any resolving the path under drive should be |
283 // failed. | 283 // failed. |
284 if (!this.driveEnabled_ && PathUtil.isDriveBasedPath(path)) { | 284 if (!this.driveEnabled_ && PathUtil.isDriveBasedPath(path)) { |
285 errorCallback(util.createFileError(FileError.NOT_FOUND_ERR)); | 285 errorCallback(util.createFileError(FileError.NOT_FOUND_ERR)); |
286 return; | 286 return; |
287 } | 287 } |
288 | 288 |
289 this.volumeManager_.resolvePath(path, successCallback, errorCallback); | 289 this.volumeManager_.resolvePath(path, successCallback, errorCallback); |
290 }; | 290 }; |
OLD | NEW |