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

Issue 666123002: Standardize usage of virtual/override/final in chrome/browser/browsing_data/ (Closed)

Created:
6 years, 2 months ago by dcheng
Modified:
6 years, 2 months ago
Reviewers:
Mike West
CC:
chromium-reviews, markusheintz_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Standardize usage of virtual/override/final in chrome/browser/browsing_data 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=mkwst@chromium.org Committed: https://crrev.com/d2d19203c2795bb1fec0c8ec6d4bb1dc1dfda9c7 Cr-Commit-Position: refs/heads/master@{#300575}

Patch Set 1 #

Patch Set 2 : Fix formatting #

Total comments: 4

Patch Set 3 : Horribleness #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -211 lines) Patch
M chrome/browser/browsing_data/browsing_data_appcache_helper.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_channel_id_helper.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_channel_id_helper.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_channel_id_helper_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_cookie_helper.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_database_helper.h View 1 1 chunk +5 lines, -6 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_file_system_helper.h View 1 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_file_system_helper.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_flash_lso_helper.cc View 1 1 chunk +5 lines, -8 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_indexed_db_helper.h View 1 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_local_storage_helper.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_quota_helper_impl.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_test_util.h View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 9 chunks +37 lines, -52 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_service_worker_helper.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/cookies_tree_model.h View 25 chunks +60 lines, -60 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_appcache_helper.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_channel_id_helper.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_cookie_helper.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_database_helper.h View 1 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_file_system_helper.h View 1 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_flash_lso_helper.h View 1 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_indexed_db_helper.h View 1 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_local_storage_helper.h View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_quota_helper.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_service_worker_helper.h View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
dcheng
6 years, 2 months ago (2014-10-21 09:26:04 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/666123002/20001
6 years, 2 months ago (2014-10-21 09:27:20 UTC) #3
Mike West
LGTM, thanks. https://codereview.chromium.org/666123002/diff/20001/chrome/browser/browsing_data/browsing_data_appcache_helper.h File chrome/browser/browsing_data/browsing_data_appcache_helper.h (right): https://codereview.chromium.org/666123002/diff/20001/chrome/browser/browsing_data/browsing_data_appcache_helper.h#newcode83 chrome/browser/browsing_data/browsing_data_appcache_helper.h:83: ~CannedBrowsingDataAppCacheHelper() override; I think this is weird. ...
6 years, 2 months ago (2014-10-21 09:29:39 UTC) #4
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/20195)
6 years, 2 months ago (2014-10-21 09:42:30 UTC) #6
dcheng
https://codereview.chromium.org/666123002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.h File chrome/browser/browsing_data/browsing_data_remover.h (right): https://codereview.chromium.org/666123002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.h#newcode253 chrome/browser/browsing_data/browsing_data_remover.h:253: ~BrowsingDataRemover() override; Ugh. It turns out this is only ...
6 years, 2 months ago (2014-10-21 09:52:51 UTC) #7
Mike West
https://codereview.chromium.org/666123002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.h File chrome/browser/browsing_data/browsing_data_remover.h (right): https://codereview.chromium.org/666123002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.h#newcode253 chrome/browser/browsing_data/browsing_data_remover.h:253: ~BrowsingDataRemover() override; On 2014/10/21 09:52:50, dcheng wrote: > Ugh. ...
6 years, 2 months ago (2014-10-21 10:08:06 UTC) #8
dcheng
https://codereview.chromium.org/666123002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.h File chrome/browser/browsing_data/browsing_data_remover.h (right): https://codereview.chromium.org/666123002/diff/20001/chrome/browser/browsing_data/browsing_data_remover.h#newcode253 chrome/browser/browsing_data/browsing_data_remover.h:253: ~BrowsingDataRemover() override; On 2014/10/21 at 10:08:06, Mike West wrote: ...
6 years, 2 months ago (2014-10-21 21:38:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/666123002/40001
6 years, 2 months ago (2014-10-21 21:41:41 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 2 months ago (2014-10-22 00:06:12 UTC) #12
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 00:10:00 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d2d19203c2795bb1fec0c8ec6d4bb1dc1dfda9c7
Cr-Commit-Position: refs/heads/master@{#300575}

Powered by Google App Engine
This is Rietveld 408576698