Standardize usage of virtual/override/final specifiers.
commitc3217160b83bda911f598a61eef374bf70b08b32
authordcheng <dcheng@chromium.org>
Tue, 4 Nov 2014 19:49:48 +0000 (4 11:49 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 4 Nov 2014 19:50:03 +0000 (4 19:50 +0000)
tree12af088f1e15e2185cc9bf47dbe0daa25cd26b08
parentda52c1a80687b90a0bdcc9443228a59e8c140f3b
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=jochen@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#302646}
17 files changed:
chrome/browser/ui/views/location_bar/content_setting_image_view.h
chrome/browser/ui/views/location_bar/ev_bubble_view.h
chrome/browser/ui/views/location_bar/generated_credit_card_view.h
chrome/browser/ui/views/location_bar/icon_label_bubble_view.h
chrome/browser/ui/views/location_bar/keyword_hint_view.h
chrome/browser/ui/views/location_bar/location_bar_decoration_view.h
chrome/browser/ui/views/location_bar/location_bar_view.h
chrome/browser/ui/views/location_bar/location_icon_view.h
chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.h
chrome/browser/ui/views/location_bar/origin_chip_view.cc
chrome/browser/ui/views/location_bar/origin_chip_view.h
chrome/browser/ui/views/location_bar/page_action_with_badge_view.h
chrome/browser/ui/views/location_bar/search_button.h
chrome/browser/ui/views/location_bar/selected_keyword_view.h
chrome/browser/ui/views/location_bar/star_view.h
chrome/browser/ui/views/location_bar/translate_icon_view.h
chrome/browser/ui/views/location_bar/zoom_bubble_view.h