Standardize usage of virtual/override/final in chrome/browser/media
commitd7e84a0594e5394dbcbed676754cb1698339bfa0
authordcheng <dcheng@chromium.org>
Wed, 22 Oct 2014 00:18:51 +0000 (21 17:18 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 22 Oct 2014 00:19:40 +0000 (22 00:19 +0000)
treeb0e52d2fc153fe44d94834e80cd4eb00f2cc4cdd
parentf3c57f9b4bb6c0e899a80737244ba1783b6691d2
Standardize usage of virtual/override/final in chrome/browser/media

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=scherkus@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#300579}
30 files changed:
chrome/browser/media/cast_transport_host_filter.h
chrome/browser/media/chrome_media_stream_infobar_browsertest.cc
chrome/browser/media/chrome_webrtc_apprtc_browsertest.cc
chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc
chrome/browser/media/chrome_webrtc_browsertest.cc
chrome/browser/media/chrome_webrtc_disable_encryption_flag_browsertest.cc
chrome/browser/media/chrome_webrtc_getmediadevices_browsertest.cc
chrome/browser/media/chrome_webrtc_perf_browsertest.cc
chrome/browser/media/chrome_webrtc_video_quality_browsertest.cc
chrome/browser/media/chrome_webrtc_webcam_browsertest.cc
chrome/browser/media/desktop_media_list_ash.h
chrome/browser/media/encrypted_media_browsertest.cc
chrome/browser/media/encrypted_media_istypesupported_browsertest.cc
chrome/browser/media/fake_desktop_media_list.h
chrome/browser/media/media_browsertest.h
chrome/browser/media/media_capture_devices_dispatcher.h
chrome/browser/media/media_stream_capture_indicator.cc
chrome/browser/media/media_stream_capture_indicator.h
chrome/browser/media/media_stream_devices_controller.h
chrome/browser/media/media_stream_infobar_delegate.h
chrome/browser/media/midi_permission_context.h
chrome/browser/media/midi_permission_context_factory.h
chrome/browser/media/midi_permission_infobar_delegate.h
chrome/browser/media/native_desktop_media_list.cc
chrome/browser/media/native_desktop_media_list.h
chrome/browser/media/native_desktop_media_list_unittest.cc
chrome/browser/media/webrtc_log_uploader.h
chrome/browser/media/webrtc_logging_handler_host.h
chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc
chrome/browser/media/wv_test_license_server_config.h