summaryrefslogtreecommitdiffstats
path: root/chromeos/disks/disk_mount_manager.cc
diff options
context:
space:
mode:
authorhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-09 06:21:55 +0000
committerhidehiko@chromium.org <hidehiko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-09 06:21:55 +0000
commit0a6c168d483613c9fc40de547643177fadece6b7 (patch)
tree2e13056b22f2eefc39af607e1cfedf2375699379 /chromeos/disks/disk_mount_manager.cc
parent4bea1afb554dbbdb9dc92ce561bfdb1187b75cb4 (diff)
downloadchromium_src-0a6c168d483613c9fc40de547643177fadece6b7.zip
chromium_src-0a6c168d483613c9fc40de547643177fadece6b7.tar.gz
chromium_src-0a6c168d483613c9fc40de547643177fadece6b7.tar.bz2
Replace mountType by volumeType on fileBrowserPrivate APIs.
This is API clean up. The mountType is being replaced by VolumeType. This CL refactors private APIs about the flag. Note that this is preparation to return Drive as a Volume. BUG=279276 TEST=Ran unit_tests, browser_tests --gtest_filter="*FileSystemExtensionApiTest*:*FileManagerBrowserTest*:*FileBrowserPrivateApiTest*" and tested manually. R=benwells@chromium.org, kinaba@chromium.org, satorux@chromium.org, yoshiki@chromium.org Review URL: https://codereview.chromium.org/23658009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/disks/disk_mount_manager.cc')
-rw-r--r--chromeos/disks/disk_mount_manager.cc33
1 files changed, 0 insertions, 33 deletions
diff --git a/chromeos/disks/disk_mount_manager.cc b/chromeos/disks/disk_mount_manager.cc
index c7023a5..9580e74 100644
--- a/chromeos/disks/disk_mount_manager.cc
+++ b/chromeos/disks/disk_mount_manager.cc
@@ -670,25 +670,6 @@ bool DiskMountManager::AddMountPointForTest(const MountPointInfo& mount_point) {
}
// static
-std::string DiskMountManager::MountTypeToString(MountType type) {
- switch (type) {
- case MOUNT_TYPE_DEVICE:
- return "device";
- case MOUNT_TYPE_ARCHIVE:
- return "file";
- case MOUNT_TYPE_NETWORK_STORAGE:
- return "network";
- case MOUNT_TYPE_GOOGLE_DRIVE:
- return "drive";
- case MOUNT_TYPE_INVALID:
- return "invalid";
- default:
- NOTREACHED();
- }
- return "";
-}
-
-// static
std::string DiskMountManager::MountConditionToString(MountCondition condition) {
switch (condition) {
case MOUNT_CONDITION_NONE:
@@ -704,20 +685,6 @@ std::string DiskMountManager::MountConditionToString(MountCondition condition) {
}
// static
-MountType DiskMountManager::MountTypeFromString(const std::string& type_str) {
- if (type_str == "device")
- return MOUNT_TYPE_DEVICE;
- else if (type_str == "network")
- return MOUNT_TYPE_NETWORK_STORAGE;
- else if (type_str == "file")
- return MOUNT_TYPE_ARCHIVE;
- else if (type_str == "drive")
- return MOUNT_TYPE_GOOGLE_DRIVE;
- else
- return MOUNT_TYPE_INVALID;
-}
-
-// static
std::string DiskMountManager::DeviceTypeToString(DeviceType type) {
switch (type) {
case DEVICE_TYPE_USB: