summaryrefslogtreecommitdiffstats
path: root/device
diff options
context:
space:
mode:
authorreillyg <reillyg@chromium.org>2015-01-12 18:48:20 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-13 02:48:58 +0000
commitf8330b75d7424cfdf0018dc51a855dc8828862e2 (patch)
treeeed77dfe0e169c0ec12db1400fb043c7bbca72aa /device
parent496a8d9e8c1a798b1c08b9068189db4de14848c7 (diff)
downloadchromium_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.cc3
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()),