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

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

Issue 13913009: filemanger: Pass SHARED_WITH_ME search type to searchDriveMetadata(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
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 f6306f39be36a8e70e6ec4bea2ec6c59c10861f7..e883b9a7e83363802307fdc584ad11dc2df3e799 100644
--- a/chrome/browser/resources/file_manager/js/volume_manager.js
+++ b/chrome/browser/resources/file_manager/js/volume_manager.js
@@ -586,7 +586,8 @@ VolumeManager.prototype.validateError_ = function(error) {
* @private
*/
VolumeManager.prototype.validateMountPath_ = function(mountPath) {
- if (!/^\/(drive|drive_offline|Downloads)$/.test(mountPath) &&
+ if (!/^\/(drive|drive_shared_with_me|drive_offline|Downloads)$/
+ .test(mountPath) &&
!/^\/((archive|removable|drive)\/[^\/]+)$/.test(mountPath))
throw new Error('Invalid mount path: ', mountPath);
};

Powered by Google App Engine
This is Rietveld 408576698