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

Side by Side Diff: chrome/browser/resources/file_manager/foreground/js/volume_manager_wrapper.js

Issue 39123003: [Files.app] Split the JavaScript files into subdirectories: common, background, and foreground (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed test failure. Created 7 years, 2 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
OLDNEW
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698