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

Unified Diff: chrome/browser/resources/file_manager/js/volume_manager.js

Issue 12716015: filemanager: Files App change necessary to use "drive/root". It still works with "drive". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments. Created 7 years, 9 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 | « chrome/browser/resources/file_manager/js/path_util.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/volume_manager.js
diff --git a/chrome/browser/resources/file_manager/js/volume_manager.js b/chrome/browser/resources/file_manager/js/volume_manager.js
index ce0e586437a7bcb1039b666c02acf004fe9f602b..73237b972c6575072608f4401878f17ddf33b52f 100644
--- a/chrome/browser/resources/file_manager/js/volume_manager.js
+++ b/chrome/browser/resources/file_manager/js/volume_manager.js
@@ -520,7 +520,8 @@ VolumeManager.prototype.validateError_ = function(error) {
* @private
*/
VolumeManager.prototype.validateMountPath_ = function(mountPath) {
- if (!/^\/(((archive|removable)\/[^\/]+)|drive|drive_offline|Downloads)$/.
- test(mountPath))
+ console.log(mountPath);
+ if (!/^\/(drive|drive_offline|Downloads)$/.test(mountPath) &&
+ !/^\/((archive|removable|drive)\/[^\/]+)$/.test(mountPath))
throw new Error('Invalid mount path: ', mountPath);
};
« no previous file with comments | « chrome/browser/resources/file_manager/js/path_util.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698