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

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

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
Reviewers:
James Cook
CC:
chromium-reviews, tfarina
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=jamescook@chromium.org Committed: https://crrev.com/2227fcd59e80b184db6223735d018a62445a29c9 Cr-Commit-Position: refs/heads/master@{#301590}

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+456 lines, -510 lines) Patch
M chrome/browser/ui/views/frame/browser_command_handler_x11.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_desktop_window_tree_host_x11.h View 1 chunk +7 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_desktop_window_tree_host_x11.cc View 1 chunk +8 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.h View 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_ash.h View 1 chunk +11 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_ash.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_header_painter_ash.h View 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.h View 1 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h View 2 chunks +27 lines, -29 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_root_view.h View 1 chunk +10 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 4 chunks +152 lines, -159 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 4 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_browsertest.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout_unittest.cc View 6 chunks +31 lines, -39 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/contents_layout_manager.h View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/contents_web_view.h View 1 chunk +9 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/frame/desktop_browser_frame_aura.h View 1 chunk +10 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/frame/global_menu_bar_x11.h View 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_ash.h View 2 chunks +22 lines, -23 lines 0 comments Download
M chrome/browser/ui/views/frame/immersive_mode_controller_stub.h View 1 chunk +12 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 2 chunks +42 lines, -44 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc View 5 chunks +20 lines, -36 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_linux.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/system_menu_model_delegate.h View 1 chunk +8 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/frame/test_with_browser_view.h View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/top_container_view.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/web_contents_close_handler_unittest.cc View 3 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
dcheng
6 years, 1 month ago (2014-10-27 21:03:27 UTC) #1
James Cook
lgtm
6 years, 1 month ago (2014-10-27 23:33:53 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686463004/1
6 years, 1 month ago (2014-10-27 23:38:15 UTC) #4
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/views/frame/browser_view.h: While running git apply --index -3 -p1; error: patch ...
6 years, 1 month ago (2014-10-28 00:52:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686463004/20001
6 years, 1 month ago (2014-10-28 06:54:09 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-10-28 07:51:05 UTC) #10
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 07:51:51 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2227fcd59e80b184db6223735d018a62445a29c9
Cr-Commit-Position: refs/heads/master@{#301590}

Powered by Google App Engine
This is Rietveld 408576698