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

Unified Diff: chrome/browser/storage_monitor/storage_monitor_win.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_win.cc
diff --git a/chrome/browser/storage_monitor/storage_monitor_win.cc b/chrome/browser/storage_monitor/storage_monitor_win.cc
index 94a88bdf4110a72a95364bb63e8e4d144ab874eb..90935a516d55871636058bae0d4900b3ba0876e6 100644
--- a/chrome/browser/storage_monitor/storage_monitor_win.cc
+++ b/chrome/browser/storage_monitor/storage_monitor_win.cc
@@ -134,6 +134,13 @@ bool StorageMonitorWin::GetMTPStorageInfoFromDeviceId(
storage_device_id, device_location, storage_object_id));
}
+std::vector<StorageInfo> StorageMonitorWin::GetAllAvailableStorages() const {
+ std::vector<StorageInfo> results;
+ if (volume_mount_watcher_.get())
+ results = volume_mount_watcher_->GetAllVolumeStorages();
+ return results;
+}
+
// static
LRESULT CALLBACK StorageMonitorWin::WndProcThunk(HWND hwnd, UINT message,
WPARAM wparam, LPARAM lparam) {

Powered by Google App Engine
This is Rietveld 408576698