OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "device/usb/usb_service.h" | 5 #include "device/usb/usb_service.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "build/build_config.h" |
9 #include "components/device_event_log/device_event_log.h" | 10 #include "components/device_event_log/device_event_log.h" |
10 #include "device/usb/usb_device.h" | 11 #include "device/usb/usb_device.h" |
11 | 12 |
12 #if defined(OS_ANDROID) | 13 #if defined(OS_ANDROID) |
13 #include "device/usb/usb_service_android.h" | 14 #include "device/usb/usb_service_android.h" |
14 #else | 15 #else |
15 #include "device/usb/usb_service_impl.h" | 16 #include "device/usb/usb_service_impl.h" |
16 #endif | 17 #endif |
17 | 18 |
18 namespace device { | 19 namespace device { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 } | 65 } |
65 | 66 |
66 void UsbService::NotifyDeviceRemoved(scoped_refptr<UsbDevice> device) { | 67 void UsbService::NotifyDeviceRemoved(scoped_refptr<UsbDevice> device) { |
67 DCHECK(CalledOnValidThread()); | 68 DCHECK(CalledOnValidThread()); |
68 | 69 |
69 FOR_EACH_OBSERVER(Observer, observer_list_, OnDeviceRemoved(device)); | 70 FOR_EACH_OBSERVER(Observer, observer_list_, OnDeviceRemoved(device)); |
70 FOR_EACH_OBSERVER(Observer, observer_list_, OnDeviceRemovedCleanup(device)); | 71 FOR_EACH_OBSERVER(Observer, observer_list_, OnDeviceRemovedCleanup(device)); |
71 } | 72 } |
72 | 73 |
73 } // namespace device | 74 } // namespace device |
OLD | NEW |