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

Unified Diff: chrome/browser/storage_monitor/storage_monitor_chromeos.cc

Issue 15896007: [SystemInfo API] Rewrite storage info provider using storage monitor impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix comments from thestig Created 7 years, 7 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/storage_monitor/storage_monitor_chromeos.cc
diff --git a/chrome/browser/storage_monitor/storage_monitor_chromeos.cc b/chrome/browser/storage_monitor/storage_monitor_chromeos.cc
index 5501d1dad84ff5815e63e3d583d430bb59a37211..91c82fa594b583f6f721d233961eb32d5798c1ab 100644
--- a/chrome/browser/storage_monitor/storage_monitor_chromeos.cc
+++ b/chrome/browser/storage_monitor/storage_monitor_chromeos.cc
@@ -282,6 +282,18 @@ StorageMonitorCros::media_transfer_protocol_manager() {
return media_transfer_protocol_manager_.get();
}
+std::vector<chrome::StorageInfo>
+StorageMonitorCros::GetAllAvailableStorages() const {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ std::vector<chrome::StorageInfo> results;
+
+ for (MountMap::const_iterator it = mount_map_.begin();
+ it != mount_map_.end(); ++it)
+ results.push_back(it->second);
+
+ return results;
+}
+
void StorageMonitorCros::AddMountedPath(
const disks::DiskMountManager::MountPointInfo& mount_info, bool has_dcim) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));

Powered by Google App Engine
This is Rietveld 408576698