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

Unified Diff: base/system_monitor/system_monitor.cc

Issue 10836004: add device type as an argument in OnDevicesChanged. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: change DeviceType prefix to DEVTYPE Created 8 years, 5 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
===================================================================
--- base/system_monitor/system_monitor.cc (revision 148913)
+++ base/system_monitor/system_monitor.cc (working copy)
@@ -83,8 +83,8 @@
}
}
-void SystemMonitor::ProcessDevicesChanged() {
- NotifyDevicesChanged();
+void SystemMonitor::ProcessDevicesChanged(DeviceType device_type) {
+ NotifyDevicesChanged(device_type);
}
void SystemMonitor::ProcessMediaDeviceAttached(
@@ -136,10 +136,10 @@
devices_changed_observer_list_->RemoveObserver(obs);
}
-void SystemMonitor::NotifyDevicesChanged() {
- DVLOG(1) << "DevicesChanged";
+void SystemMonitor::NotifyDevicesChanged(DeviceType device_type) {
+ DVLOG(1) << "DevicesChanged with device type " << device_type;
devices_changed_observer_list_->Notify(
- &DevicesChangedObserver::OnDevicesChanged);
+ &DevicesChangedObserver::OnDevicesChanged, device_type);
jar (doing other things) 2012/07/30 23:18:13 nit: 4 character indent
wjia(left Chromium) 2012/07/30 23:32:36 Done.
}
void SystemMonitor::NotifyMediaDeviceAttached(

Powered by Google App Engine
This is Rietveld 408576698