diff options
author | reillyg <reillyg@chromium.org> | 2015-01-12 18:48:20 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-13 02:48:58 +0000 |
commit | f8330b75d7424cfdf0018dc51a855dc8828862e2 (patch) | |
tree | eed77dfe0e169c0ec12db1400fb043c7bbca72aa /device | |
parent | 496a8d9e8c1a798b1c08b9068189db4de14848c7 (diff) | |
download | chromium_src-f8330b75d7424cfdf0018dc51a855dc8828862e2.zip chromium_src-f8330b75d7424cfdf0018dc51a855dc8828862e2.tar.gz chromium_src-f8330b75d7424cfdf0018dc51a855dc8828862e2.tar.bz2 |
Mark UsbServiceImpl::UIThreadHelper as final.
Silence -Wdelete-non-virtual-dtor warnings on this class by marking it
final and inheriting from DeviceMonitorWin::Observe privately.
BUG=
Review URL: https://codereview.chromium.org/850563002
Cr-Commit-Position: refs/heads/master@{#311188}
Diffstat (limited to 'device')
-rw-r--r-- | device/usb/usb_service_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/device/usb/usb_service_impl.cc b/device/usb/usb_service_impl.cc index 5b4d503..89fbd66a 100644 --- a/device/usb/usb_service_impl.cc +++ b/device/usb/usb_service_impl.cc @@ -106,7 +106,8 @@ class UsbServiceImpl : public UsbService, // device change notification window messages. It registers for notifications // regarding devices implementating the "UsbDevice" interface, which represents // most of the devices the UsbService will enumerate. -class UsbServiceImpl::UIThreadHelper : DeviceMonitorWin::Observer { +class UsbServiceImpl::UIThreadHelper final + : private DeviceMonitorWin::Observer { public: UIThreadHelper(base::WeakPtr<UsbServiceImpl> usb_service) : task_runner_(base::ThreadTaskRunnerHandle::Get()), |