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

Unified Diff: base/system_monitor/system_monitor.cc

Issue 10893006: Extend system monitor capacity for watching the free space changes (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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: base/system_monitor/system_monitor.cc
diff --git a/base/system_monitor/system_monitor.cc b/base/system_monitor/system_monitor.cc
index 3a3aded459e2eb7ebbe72a0b7b6172c1a82be390..7822ece94ae07e205e7d73085a73915866ecc708 100644
--- a/base/system_monitor/system_monitor.cc
+++ b/base/system_monitor/system_monitor.cc
@@ -151,6 +151,15 @@ void SystemMonitor::NotifyDevicesChanged(DeviceType device_type) {
&DevicesChangedObserver::OnDevicesChanged, device_type);
}
+void SystemMonitor::NotifyStorageFreeSpaceChanged(
+ const FilePath::StringType& path, double available_capacity) {
+ DVLOG(1) << "StorageFreeSpaceChanged with path " << path
+ << " and free space " << available_capacity;
+ devices_changed_observer_list_->Notify(
+ &DevicesChangedObserver::OnStorageFreeSpaceChanged,
+ path, available_capacity);
+}
+
void SystemMonitor::NotifyRemovableStorageAttached(
const std::string& id,
const string16& name,

Powered by Google App Engine
This is Rietveld 408576698