Standardize usage of virtual/override/final specifiers.
commitacfeaee6661ddd4cb0309a6faed1f4aeb8d24853
authordcheng <dcheng@chromium.org>
Mon, 27 Oct 2014 21:43:45 +0000 (27 14:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Oct 2014 21:44:24 +0000 (27 21:44 +0000)
tree3b1ca681511d2058b3772a1156eaa33e89c087c5
parentf9afb370f94e325015aa8633135474f87aa5eb76
Standardize usage of virtual/override/final specifiers.

The Google C++ style guide states:

  Explicitly annotate overrides of virtual functions or virtual
  destructors with an override or (less frequently) final specifier.
  Older (pre-C++11) code will use the virtual keyword as an inferior
  alternative annotation. For clarity, use exactly one of override,
  final, or virtual when declaring an override.

To better conform to these guidelines, the following constructs have
been rewritten:

- if a base class has a virtual destructor, then:
    virtual ~Foo();                   ->  ~Foo() override;
- virtual void Foo() override;        ->  void Foo() override;
- virtual void Foo() override final;  ->  void Foo() final;

This patch was automatically generated. The clang plugin can generate
fixit hints, which are suggested edits when it is 100% sure it knows how
to fix a problem. The hints from the clang plugin were applied to the
source tree using the tool in https://codereview.chromium.org/598073004.

BUG=417463
R=thestig@chromium.org

Review URL: https://codereview.chromium.org/672413003

Cr-Commit-Position: refs/heads/master@{#301451}
chrome/browser/ui/views/translate/translate_bubble_view.h
chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc
chrome/browser/ui/views/translate/translate_bubble_view_unittest.cc