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

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

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
Reviewers:
calamity
CC:
chrome-apps-syd-reviews_chromium.org, 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=calamity@chromium.org Committed: https://crrev.com/07d12f74065fb3d107bb2abbab6432d492b62c1d Cr-Commit-Position: refs/heads/master@{#301540}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -359 lines) Patch
M ui/app_list/app_list_item_list_unittest.cc View 1 chunk +3 lines, -7 lines 0 comments Download
M ui/app_list/app_list_model_unittest.cc View 2 chunks +6 lines, -14 lines 0 comments Download
M ui/app_list/demo/app_list_demo_views.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M ui/app_list/pagination_model_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/app_list/search/history_data_store_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/app_list/search/mixer_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/app_list/test/app_list_test_view_delegate.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/app_list/views/app_list_background.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/app_list/views/app_list_folder_view.h View 3 chunks +20 lines, -23 lines 0 comments Download
M ui/app_list/views/app_list_item_view.h View 2 chunks +21 lines, -21 lines 0 comments Download
M ui/app_list/views/app_list_main_view.h View 2 chunks +7 lines, -7 lines 0 comments Download
M ui/app_list/views/app_list_main_view.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M ui/app_list/views/app_list_main_view_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/app_list/views/app_list_menu_views.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/views/app_list_view.h View 3 chunks +20 lines, -24 lines 0 comments Download
M ui/app_list/views/app_list_view.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M ui/app_list/views/app_list_view_unittest.cc View 6 chunks +8 lines, -8 lines 0 comments Download
M ui/app_list/views/apps_container_view.h View 2 chunks +5 lines, -5 lines 0 comments Download
M ui/app_list/views/apps_grid_view.h View 3 chunks +25 lines, -26 lines 0 comments Download
M ui/app_list/views/apps_grid_view.cc View 4 chunks +8 lines, -9 lines 0 comments Download
M ui/app_list/views/apps_grid_view_unittest.cc View 6 chunks +18 lines, -27 lines 0 comments Download
M ui/app_list/views/cached_label.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/views/contents_switcher_view.h View 2 chunks +6 lines, -7 lines 0 comments Download
M ui/app_list/views/contents_view.h View 2 chunks +8 lines, -8 lines 0 comments Download
M ui/app_list/views/folder_background_view.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/app_list/views/folder_header_view.h View 2 chunks +9 lines, -10 lines 0 comments Download
M ui/app_list/views/folder_header_view.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/app_list/views/folder_header_view_unittest.cc View 3 chunks +8 lines, -9 lines 0 comments Download
M ui/app_list/views/page_switcher.h View 2 chunks +8 lines, -9 lines 0 comments Download
M ui/app_list/views/page_switcher.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/app_list/views/progress_bar_view.h View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/app_list/views/pulsing_block_view.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/app_list/views/search_box_view.h View 3 chunks +15 lines, -17 lines 0 comments Download
M ui/app_list/views/search_box_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/app_list/views/search_box_view_unittest.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M ui/app_list/views/search_result_actions_view.h View 2 chunks +3 lines, -4 lines 0 comments Download
M ui/app_list/views/search_result_list_view.h View 3 chunks +12 lines, -13 lines 0 comments Download
M ui/app_list/views/search_result_list_view_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/app_list/views/search_result_view.h View 2 chunks +18 lines, -20 lines 0 comments Download
M ui/app_list/views/speech_view.h View 2 chunks +7 lines, -9 lines 0 comments Download
M ui/app_list/views/speech_view.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/app_list/views/speech_view_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/app_list/views/start_page_view.h View 3 chunks +8 lines, -8 lines 0 comments Download
M ui/app_list/views/start_page_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/app_list/views/tile_item_view.h View 1 chunk +5 lines, -6 lines 0 comments Download
M ui/app_list/views/top_icon_animation_view.h View 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
dcheng
6 years, 1 month ago (2014-10-27 19:56:54 UTC) #1
calamity
lgtm
6 years, 1 month ago (2014-10-28 00:26:12 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/681873002/1
6 years, 1 month ago (2014-10-28 00:33:05 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 1 month ago (2014-10-28 01:24:20 UTC) #5
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 01:25:09 UTC) #6
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/07d12f74065fb3d107bb2abbab6432d492b62c1d
Cr-Commit-Position: refs/heads/master@{#301540}

Powered by Google App Engine
This is Rietveld 408576698