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

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

Issue 16186002: Refine StorageMonitor storage device getter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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/volume_mount_watcher_win.cc
diff --git a/chrome/browser/storage_monitor/volume_mount_watcher_win.cc b/chrome/browser/storage_monitor/volume_mount_watcher_win.cc
index fe07c0ac283ad78b5f213d3bc65c0fccdce079f8..612b25cc225af84009fa35fa497743222cebb3cc 100644
--- a/chrome/browser/storage_monitor/volume_mount_watcher_win.cc
+++ b/chrome/browser/storage_monitor/volume_mount_watcher_win.cc
@@ -534,4 +534,12 @@ void VolumeMountWatcherWin::EjectDevice(
base::Bind(&EjectDeviceInThreadPool, device, callback, task_runner_, 0));
}
+std::vector<StorageInfo> VolumeMountWatcherWin::GetAllVolumeStorages() const {
+ std::vector<StorageInfo> results;
+ MountPointDeviceMetadataMap::const_iterator it;
+ for (it = device_metadata_.begin(); it != device_metadata_.end(); ++it)
+ results.push_back(it->second);
+ return results;
+}
+
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698