Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Issue 665323004: Standardize usage of virtual/override/final in chrome/browser/media (Closed)

Created:
6 years, 2 months ago by dcheng
Modified:
6 years, 2 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, feature-media-reviews_chromium.org, hclam+watch_chromium.org, hguihot+watch_chromium.org, hubbe+watch_chromium.org, imcheng+watch_chromium.org, jasonroberts+watch_google.com, mcasas+watch_chromium.org, mikhal+watch_chromium.org, miu+watch_chromium.org, posciak+watch_chromium.org, pwestin+watch_google.com, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/d7e84a0594e5394dbcbed676754cb1698339bfa0 Cr-Commit-Position: refs/heads/master@{#300579}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -142 lines) Patch
M chrome/browser/media/cast_transport_host_filter.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/media/chrome_media_stream_infobar_browsertest.cc View 1 chunk +1 line, -1 line 2 comments Download
M chrome/browser/media/chrome_webrtc_apprtc_browsertest.cc View 1 chunk +1 line, -1 line 1 comment Download
M chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/media/chrome_webrtc_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/media/chrome_webrtc_disable_encryption_flag_browsertest.cc View 1 chunk +2 lines, -2 lines 1 comment Download
M chrome/browser/media/chrome_webrtc_getmediadevices_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/media/chrome_webrtc_perf_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/media/chrome_webrtc_video_quality_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/media/chrome_webrtc_webcam_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/media/desktop_media_list_ash.h View 1 chunk +7 lines, -8 lines 0 comments Download
M chrome/browser/media/encrypted_media_browsertest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/media/encrypted_media_istypesupported_browsertest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/media/fake_desktop_media_list.h View 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/media/media_browsertest.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/media/media_capture_devices_dispatcher.h View 2 chunks +14 lines, -15 lines 0 comments Download
M chrome/browser/media/media_stream_capture_indicator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/media/media_stream_capture_indicator.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.h View 2 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/media/media_stream_infobar_delegate.h View 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/media/midi_permission_context.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/media/midi_permission_context_factory.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/media/midi_permission_infobar_delegate.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/media/native_desktop_media_list.h View 1 chunk +7 lines, -8 lines 0 comments Download
M chrome/browser/media/native_desktop_media_list.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/media/native_desktop_media_list_unittest.cc View 5 chunks +12 lines, -18 lines 0 comments Download
M chrome/browser/media/webrtc_log_uploader.h View 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/media/webrtc_logging_handler_host.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/media/wv_test_license_server_config.h View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
dcheng
6 years, 2 months ago (2014-10-21 21:30:08 UTC) #1
scherkus (not reviewing)
need some clarification on whether the tool is missing some cases, or whether I'm simply ...
6 years, 2 months ago (2014-10-21 21:53:59 UTC) #2
dcheng
You're not misinterpreting the rules, it does seem strange. You don't happen to know if ...
6 years, 2 months ago (2014-10-21 22:00:18 UTC) #3
scherkus (not reviewing)
thanks -- I wasn't sure if you were going for 100% or if edge cases ...
6 years, 2 months ago (2014-10-21 22:03:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/665323004/1
6 years, 2 months ago (2014-10-21 22:08:17 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 2 months ago (2014-10-22 00:19:32 UTC) #7
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 00:20:30 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d7e84a0594e5394dbcbed676754cb1698339bfa0
Cr-Commit-Position: refs/heads/master@{#300579}

Powered by Google App Engine
This is Rietveld 408576698