| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/system_monitor/system_monitor.h" | 5 #include "base/system_monitor/system_monitor.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 devices_changed_observer_list_->AddObserver(obs); | 39 devices_changed_observer_list_->AddObserver(obs); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void SystemMonitor::RemoveDevicesChangedObserver(DevicesChangedObserver* obs) { | 42 void SystemMonitor::RemoveDevicesChangedObserver(DevicesChangedObserver* obs) { |
| 43 devices_changed_observer_list_->RemoveObserver(obs); | 43 devices_changed_observer_list_->RemoveObserver(obs); |
| 44 } | 44 } |
| 45 | 45 |
| 46 void SystemMonitor::NotifyDevicesChanged(DeviceType device_type) { | 46 void SystemMonitor::NotifyDevicesChanged(DeviceType device_type) { |
| 47 DVLOG(1) << "DevicesChanged with device type " << device_type; | 47 DVLOG(1) << "DevicesChanged with device type " << device_type; |
| 48 devices_changed_observer_list_->Notify( | 48 devices_changed_observer_list_->Notify( |
| 49 &DevicesChangedObserver::OnDevicesChanged, device_type); | 49 FROM_HERE, &DevicesChangedObserver::OnDevicesChanged, device_type); |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace base | 52 } // namespace base |
| OLD | NEW |