commit | d01c592e45e08c48a71bbae21bd684c3810b59bc | [log] [tgz] |
---|---|---|
author | Greg Kaiser <gkaiser@google.com> | Wed Sep 05 08:04:01 2018 -0700 |
committer | Greg Kaiser <gkaiser@google.com> | Thu Sep 06 06:18:01 2018 -0700 |
tree | 8633aa65aa72257fbc6711951ac09b32122fb918 | |
parent | 5e7377e3173a9f5e162e163fa55dee33472b2f2d [diff] |
UsbTransportSniffer: Defensively use 'final' UsbTransportSniffer invokes the virtual method Close() within its destructor. This usage is fine right now, but if a future class inherited from UsbTransportSniffer and overrode the Close() method, then this destructor would not act as expected. To protect against this, we declare Close() 'final' in UsbTransportSniffer, and add a comment. Test: Treehugger Change-Id: I6182d84e7caf67cb06f37c22c6203ad6d6e57f34