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

Unified Diff: chromeos/disks/disk_mount_manager.cc

Issue 23658009: Replace mountType by volumeType on fileBrowserPrivate APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 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 | « chromeos/disks/disk_mount_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/disks/disk_mount_manager.cc
diff --git a/chromeos/disks/disk_mount_manager.cc b/chromeos/disks/disk_mount_manager.cc
index c7023a5cfa03a05b8ef7e713f6f04912f744ace5..9580e74812a36f23e53b02817886b48b3ee95b66 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:
« no previous file with comments | « chromeos/disks/disk_mount_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698