Commit b7fa55af authored by Zentaro Kavanagh's avatar Zentaro Kavanagh Committed by Commit Bot

Mark classes with final dtors as final

- -Wfinal-dtor-non-final-class warns on classes with final dtors but
  not final classes.
- Error messages are better when the class is marked final.
- Fix existing issues in code base and remove warning exemption

Bug: 999886
Test: no errors building
Change-Id: I0814e4c543eb7f6d25bb0dfc1990b30e0b0c2f80
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2468299
Commit-Queue: Zentaro Kavanagh <zentaro@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#827532}
parent 5446e671
......@@ -11,8 +11,8 @@
// plugins are disabled and the PDF fails to load.
// TODO(amberwon): Flesh out the class more to download an embedded PDF when the
// PDF plugin is disabled or unavailable.
class PDFPluginPlaceholder : public plugins::PluginPlaceholderBase,
public gin::Wrappable<PDFPluginPlaceholder> {
class PDFPluginPlaceholder final : public plugins::PluginPlaceholderBase,
public gin::Wrappable<PDFPluginPlaceholder> {
public:
static gin::WrapperInfo kWrapperInfo;
......
......@@ -29,7 +29,7 @@ namespace content {
// MediaInterfaceFactory is an implementation of media::mojom::InterfaceFactory
// that provides thread safety and handles disconnection error automatically.
// The Create* methods can be called on any thread.
class CONTENT_EXPORT MediaInterfaceFactory
class CONTENT_EXPORT MediaInterfaceFactory final
: public media::mojom::InterfaceFactory {
public:
explicit MediaInterfaceFactory(
......
......@@ -61,7 +61,7 @@ content::RenderFrame* GetRenderFrame(v8::Local<v8::Value> value) {
return content::RenderFrame::FromWebFrame(frame);
}
class RenderFrameStatus : public content::RenderFrameObserver {
class RenderFrameStatus final : public content::RenderFrameObserver {
public:
explicit RenderFrameStatus(content::RenderFrame* render_frame)
: content::RenderFrameObserver(render_frame) {}
......
......@@ -15,8 +15,8 @@ namespace device {
// HidConnectionImpl is reponsible for handling mojo communications from
// clients. It delegates to HidConnection the real work of creating
// connections in different platforms.
class HidConnectionImpl : public mojom::HidConnection,
public HidConnection::Client {
class HidConnectionImpl final : public mojom::HidConnection,
public HidConnection::Client {
public:
// Creates a strongly-bound HidConnectionImpl owned by |receiver| and
// |watcher|. |connection| provides access to the HID device. If
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment