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

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

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
Reviewers:
miu
CC:
dcheng, chromium-reviews, miu+watch_chromium.org, 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=miu@chromium.org Committed: https://crrev.com/d90c2d6d96573bc3f3078eadf704f0a6d0b406ad Cr-Commit-Position: refs/heads/master@{#301591}

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -288 lines) Patch
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.h View 2 chunks +51 lines, -55 lines 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 4 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h View 2 chunks +30 lines, -32 lines 0 comments Download
M chrome/browser/ui/views/tabs/media_indicator_button.h View 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/tabs/media_indicator_button.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.h View 2 chunks +26 lines, -27 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 8 chunks +14 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.h View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc View 6 chunks +14 lines, -16 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.h View 3 chunks +47 lines, -52 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 5 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip_unittest.cc View 4 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_unittest.cc View 3 chunks +28 lines, -35 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
dcheng
6 years, 1 month ago (2014-10-27 20:45:30 UTC) #1
miu
lgtm
6 years, 1 month ago (2014-10-28 04:57:21 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/682763002/1
6 years, 1 month ago (2014-10-28 04:59:02 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/79146) linux_chromium_compile_dbg_32 on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32/builds/5084) win_chromium_rel ...
6 years, 1 month ago (2014-10-28 05:03:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/682763002/20001
6 years, 1 month ago (2014-10-28 06:58:18 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-10-28 07:56:42 UTC) #11
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 07:57:22 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d90c2d6d96573bc3f3078eadf704f0a6d0b406ad
Cr-Commit-Position: refs/heads/master@{#301591}

Powered by Google App Engine
This is Rietveld 408576698