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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_util.cc

Issue 181203002: Get rid of mountPath dependency in Files app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 6 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
Index: chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
index c58fcd1d6522b258e3c5d5bd8e7fa70be0669bdb..fd6758f6eac1f38bf1f978ea01cb6f5a04813999 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
@@ -127,15 +127,6 @@ void VolumeInfoToVolumeMetadata(
DCHECK(volume_metadata);
DCHECK(!volume_info.mount_path.empty());
- // Convert mount point path to relative path with the external file system
- // exposed within File API.
- base::FilePath relative_mount_path;
- if (ConvertAbsoluteFilePathToRelativeFileSystemPath(
- profile, kFileManagerAppId, base::FilePath(volume_info.mount_path),
- &relative_mount_path)) {
- volume_metadata->mount_path = "/" + relative_mount_path.AsUTF8Unsafe();
- }
-
volume_metadata->volume_id = volume_info.volume_id;
// TODO(kinaba): fill appropriate information once multi-profile support is

Powered by Google App Engine
This is Rietveld 408576698