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

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

Created:
6 years, 1 month ago by dcheng
Modified:
6 years, 1 month ago
Reviewers:
Nicolas Zea, maniscalco
CC:
benquan, chromium-apps-reviews_chromium.org, chromium-reviews, Dane Wallinga, dyu1, estade+watch_chromium.org, extensions-reviews_chromium.org, Ilya Sherman, maniscalco+watch_chromium.org, pam+watch_chromium.org, pvalenzuela+watch_chromium.org, rouslan+autofillwatch_chromium.org, tim+watch_chromium.org, zea+watch_chromium.org
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=nick@chromium.org Committed: https://crrev.com/9a31600726b75b2010edcdb651caefdc5dac644f Cr-Commit-Position: refs/heads/master@{#301981}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -145 lines) Patch
M chrome/browser/sync/abstract_profile_sync_service_test.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/backup_rollback_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/autofill_data_type_controller_unittest.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/sync/glue/extensions_activity_monitor_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/favicon_cache_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/frontend_data_type_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/local_device_info_provider_unittest.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/non_frontend_data_type_controller_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/search_engine_data_type_controller_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_registrar_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/ui_model_worker_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_auth_provider_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 3 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/sessions/session_data_type_controller_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/startup_controller_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/sync_error_notifier_ash.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/sync_error_notifier_ash.cc View 1 chunk +8 lines, -8 lines 0 comments Download
M chrome/browser/sync/sync_error_notifier_ash_unittest.cc View 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/sync/sync_error_notifier_factory_ash.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/sync_global_error_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/sync_startup_tracker_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/sync/test/integration/cross_platform_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/dictionary_helper.cc View 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/sync/test/integration/dictionary_load_observer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/enable_disable_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/migration_test.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/test/integration/multiple_client_bookmarks_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/multiple_client_dictionary_sync_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/multiple_client_preferences_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/multiple_client_sessions_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/multiple_client_typed_urls_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/performance/dictionary_sync_perf_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_apps_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_bookmarks_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_dictionary_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_extensions_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_passwords_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_preferences_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_search_engines_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_supervised_user_settings_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_themes_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/single_client_typed_urls_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_auth_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_errors_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_test.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_app_list_sync_test.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_apps_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/two_client_autofill_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/two_client_bookmarks_sync_test.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_dictionary_sync_test.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_extension_settings_and_app_settings_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/two_client_extensions_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/two_client_search_engines_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/two_client_sessions_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/two_client_themes_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/test/integration/two_client_typed_urls_sync_test.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (3 generated)
dcheng
6 years, 1 month ago (2014-10-27 21:16:01 UTC) #1
ncarter (slow)
-ncarter +zea
6 years, 1 month ago (2014-10-28 14:53:47 UTC) #3
dcheng
+maniscalco, mind taking a look at this?
6 years, 1 month ago (2014-10-29 17:57:51 UTC) #5
Nicolas Zea
LGTM
6 years, 1 month ago (2014-10-29 22:01:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686563003/1
6 years, 1 month ago (2014-10-29 22:13:05 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 1 month ago (2014-10-29 23:42:41 UTC) #9
commit-bot: I haz the power
6 years, 1 month ago (2014-10-29 23:43:32 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9a31600726b75b2010edcdb651caefdc5dac644f
Cr-Commit-Position: refs/heads/master@{#301981}

Powered by Google App Engine
This is Rietveld 408576698