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

Issue 667283002: Standardize usage of virtual/override/final in chrome/browser/notifications (Closed)

Created:
6 years, 2 months ago by dcheng
Modified:
6 years, 2 months ago
Reviewers:
dewittj
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org, peter+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -166 lines) Patch
M chrome/browser/notifications/desktop_notification_infobar_delegate.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.h View 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service_factory.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/notifications/extension_welcome_notification.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/extension_welcome_notification.cc View 4 chunks +10 lines, -13 lines 0 comments Download
M chrome/browser/notifications/extension_welcome_notification_factory.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/notifications/extension_welcome_notification_unittest.cc View 4 chunks +14 lines, -18 lines 0 comments Download
M chrome/browser/notifications/fullscreen_notification_blocker.h View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/notifications/google_now_notification_stats_collector.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.h View 1 chunk +15 lines, -18 lines 0 comments Download
M chrome/browser/notifications/message_center_notifications_browsertest.cc View 2 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/notifications/message_center_settings_controller.h View 2 chunks +18 lines, -21 lines 0 comments Download
M chrome/browser/notifications/message_center_stats_collector.h View 2 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/notifications/notification.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/notification_browsertest.cc View 2 chunks +6 lines, -8 lines 0 comments Download
M chrome/browser/notifications/notification_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/notification_object_proxy.h View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/notifications/notification_system_observer.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/notifications/notification_test_util.h View 2 chunks +17 lines, -18 lines 0 comments Download
M chrome/browser/notifications/screen_lock_notification_blocker.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/sync_notifier/chrome_notifier_service_factory.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
dcheng
6 years, 2 months ago (2014-10-21 21:19:59 UTC) #1
dewittj
lgtm, but I wonder if there are any gotchas I should know about? I'm not ...
6 years, 2 months ago (2014-10-21 22:04:32 UTC) #2
dcheng
No real catches to know of--it's basically the same deal as before, but with the ...
6 years, 2 months ago (2014-10-21 22:07:30 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/667283002/1
6 years, 2 months ago (2014-10-21 22:08:19 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years, 2 months ago (2014-10-22 01:58:22 UTC) #6
commit-bot: I haz the power
6 years, 2 months ago (2014-10-22 04:05:21 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/45ccfbadf5bf0a02bfd402e24c24ac1f096f3a46
Cr-Commit-Position: refs/heads/master@{#300617}

Powered by Google App Engine
This is Rietveld 408576698