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

Issue 686523002: Standardize usage of virtual/override/final specifiers. (Closed)

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
Reviewers:
Charlie Reis
CC:
aboxhall+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, cmumford, creis+watch_chromium.org, danakj+watch_chromium.org, darin-cc_chromium.org, dgrogan, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, eme-reviews_chromium.org, extensions-reviews_chromium.org, feature-media-reviews_chromium.org, jam, jbauman+watch_chromium.org, jdduke+watch_chromium.org, jln+watch_chromium.org, jochen+watch_chromium.org, jsbell+idb_chromium.org, kalyank, mcasas+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mkwst+moarreviews-renderer_chromium.org, Michael van Ouwerkerk, nasko+codewatch_chromium.org, piman+watch_chromium.org, plundblad+watch_chromium.org, posciak+watch_chromium.org, riju_, scheib+watch_chromium.org, sievers+watch_chromium.org, timvolodine, wjia+watch_chromium.org, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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=creis@chromium.org Committed: https://crrev.com/f576215cf642f287b6a5ff854a122e064bbaf0e0 Cr-Commit-Position: refs/heads/master@{#301771}

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -253 lines) Patch
M content/child/indexed_db/indexed_db_dispatcher_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/child/power_monitor_broadcast_source_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/site_isolation_policy_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/web_url_loader_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/font_config_ipc_linux.h View 1 chunk +7 lines, -7 lines 0 comments Download
M content/common/gpu/client/gl_helper_benchmark.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/gl_helper_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_in_process_context_tests.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_x11.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_memory_manager_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/common/host_shared_bitmap_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/sandbox_linux/bpf_gpu_policy_linux.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/sandbox_linux/bpf_gpu_policy_linux.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/sandbox_linux/bpf_ppapi_policy_linux.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/sandbox_linux/bpf_renderer_policy_linux.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/sandbox_linux/bpf_utility_policy_linux.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/public/browser/desktop_media_id.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/test/browser_test_base.h View 2 chunks +3 lines, -3 lines 0 comments Download
M content/public/test/content_browser_test.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/public/test/render_view_test.h View 2 chunks +3 lines, -3 lines 0 comments Download
M content/public/test/test_renderer_host.h View 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/accessibility/renderer_accessibility_complete.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/device_sensors/device_light_event_pump_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/device_sensors/device_motion_event_pump_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/device_sensors/device_orientation_event_pump_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/dom_storage/dom_storage_cached_area_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M content/renderer/gin_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/queue_message_swap_promise_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/gpu/render_widget_compositor_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/input_event_filter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/manifest/manifest_parser_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/crypto/key_systems_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M content/renderer/media/media_stream_video_capture_source_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/media_stream_video_source_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/media_stream_video_track_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/media/render_media_log_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/rtc_peer_connection_handler_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/rtc_video_decoder_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/user_media_client_impl_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/video_source_handler_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc/media_stream_remote_video_source_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc/media_stream_track_metrics_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc/video_destination_handler_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc/webrtc_local_audio_track_adapter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc/webrtc_media_stream_adapter_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_video_capturer_adapter.cc View 4 chunks +51 lines, -51 lines 0 comments Download
M content/renderer/media/webrtc/webrtc_video_capturer_adapter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/webrtc_local_audio_source_provider_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/webrtc_local_audio_track_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/mouse_lock_dispatcher_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/host_var_tracker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_device_enumeration_host_helper_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_file_chooser_host_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_graphics_2d_host_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_url_request_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/v8_var_converter_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/render_thread_impl_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_thread_impl_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_widget_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/scheduler/task_queue_manager.cc View 2 chunks +8 lines, -9 lines 0 comments Download
M content/renderer/screen_orientation/screen_orientation_dispatcher_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/v8_value_converter_impl_unittest.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M content/shell/app/shell_crash_reporter_client.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/shell/app/shell_main_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/shell_platform_data_aura.cc View 4 chunks +12 lines, -16 lines 0 comments Download
M content/shell/browser/shell_views.cc View 7 chunks +21 lines, -29 lines 0 comments Download
M content/test/image_decoder_test.h View 1 chunk +1 line, -1 line 0 comments Download
M content/test/ppapi_unittest.h View 1 chunk +3 lines, -3 lines 0 comments Download
M content/test/test_render_view_host.h View 1 chunk +1 line, -1 line 0 comments Download
M content/test/webrtc_content_browsertest_base.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/test/webui_resource_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (3 generated)
dcheng
6 years, 1 month ago (2014-10-27 20:26:12 UTC) #1
Charlie Reis
LGTM
6 years, 1 month ago (2014-10-29 00:07:07 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686523002/1
6 years, 1 month ago (2014-10-29 00:08:58 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/11641) chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/20760) linux_chromium_asan_rel ...
6 years, 1 month ago (2014-10-29 00:18:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686523002/20001
6 years, 1 month ago (2014-10-29 01:14:45 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-10-29 02:12:20 UTC) #9
commit-bot: I haz the power
6 years, 1 month ago (2014-10-29 02:13:07 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f576215cf642f287b6a5ff854a122e064bbaf0e0
Cr-Commit-Position: refs/heads/master@{#301771}

Powered by Google App Engine
This is Rietveld 408576698