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

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

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
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=jochen@chromium.org Committed: https://crrev.com/c3217160b83bda911f598a61eef374bf70b08b32 Cr-Commit-Position: refs/heads/master@{#302646}

Patch Set 1 #

Patch Set 2 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -155 lines) Patch
M chrome/browser/ui/views/location_bar/content_setting_image_view.h View 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/location_bar/ev_bubble_view.h View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/generated_credit_card_view.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/icon_label_bubble_view.h View 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/location_bar/keyword_hint_view.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_decoration_view.h View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 3 chunks +63 lines, -65 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_icon_view.h View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.h View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/location_bar/origin_chip_view.h View 3 chunks +10 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/location_bar/origin_chip_view.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_with_badge_view.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/search_button.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/selected_keyword_view.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/star_view.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/translate_icon_view.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.h View 2 chunks +13 lines, -15 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
dcheng
6 years, 1 month ago (2014-10-27 20:53:04 UTC) #1
dcheng
+pkasting as well for this review (sorry for the second flood of reviews)
6 years, 1 month ago (2014-10-29 17:44:06 UTC) #3
dcheng
ping =)
6 years, 1 month ago (2014-11-03 20:27:53 UTC) #4
Peter Kasting
Rubber-stamp LGTM
6 years, 1 month ago (2014-11-03 20:29:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/678093002/1
6 years, 1 month ago (2014-11-03 20:57:00 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu_retina_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu_retina_triggered_tests/builds/63312) android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/30182) chromium_presubmit ...
6 years, 1 month ago (2014-11-03 21:08:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/678093002/20001
6 years, 1 month ago (2014-11-04 18:34:47 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-11-04 19:49:57 UTC) #12
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 19:50:33 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c3217160b83bda911f598a61eef374bf70b08b32
Cr-Commit-Position: refs/heads/master@{#302646}

Powered by Google App Engine
This is Rietveld 408576698