| Index: chrome/browser/storage_monitor/storage_monitor_linux.cc
|
| diff --git a/chrome/browser/storage_monitor/storage_monitor_linux.cc b/chrome/browser/storage_monitor/storage_monitor_linux.cc
|
| index 1626f8e24e86688151f3cc6368c6b3c5f845f004..dc52455ac45797c8ad35ea57e7a0a562e2987962 100644
|
| --- a/chrome/browser/storage_monitor/storage_monitor_linux.cc
|
| +++ b/chrome/browser/storage_monitor/storage_monitor_linux.cc
|
| @@ -8,6 +8,7 @@
|
|
|
| #include <mntent.h>
|
| #include <stdio.h>
|
| +#include <sys/vfs.h>
|
|
|
| #include <list>
|
|
|
| @@ -296,6 +297,17 @@ void StorageMonitorLinux::Init() {
|
| new MediaTransferProtocolDeviceObserverLinux(receiver()));
|
| }
|
|
|
| +std::vector<StorageInfo> StorageMonitorLinux::GetAllAvailableStorages() const {
|
| + DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| + std::vector<StorageInfo> results;
|
| +
|
| + for (MountMap::const_iterator it = mount_info_map_.begin();
|
| + it != mount_info_map_.end(); ++it)
|
| + results.push_back(it->second.storage_info);
|
| +
|
| + return results;
|
| +}
|
| +
|
| bool StorageMonitorLinux::GetStorageInfoForPath(
|
| const base::FilePath& path,
|
| StorageInfo* device_info) const {
|
|
|