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

Unified Diff: chrome/browser/notifications/message_center_stats_collector.h

Issue 667283002: Standardize usage of virtual/override/final in chrome/browser/notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/message_center_stats_collector.h
diff --git a/chrome/browser/notifications/message_center_stats_collector.h b/chrome/browser/notifications/message_center_stats_collector.h
index a64765eebd8406cc69e95416735a4309aa4f2c5b..f5808d077a1a9268bbc27100c7b3bffe6411ba77 100644
--- a/chrome/browser/notifications/message_center_stats_collector.h
+++ b/chrome/browser/notifications/message_center_stats_collector.h
@@ -39,7 +39,7 @@ class MessageCenterStatsCollector
explicit MessageCenterStatsCollector(
message_center::MessageCenter* message_center);
- virtual ~MessageCenterStatsCollector();
+ ~MessageCenterStatsCollector() override;
private:
// Represents the aggregate stats for each notification.
@@ -63,21 +63,19 @@ class MessageCenterStatsCollector
};
// MessageCenterObserver
- virtual void OnNotificationAdded(const std::string& notification_id) override;
- virtual void OnNotificationRemoved(const std::string& notification_id,
- bool by_user) override;
- virtual void OnNotificationUpdated(
- const std::string& notification_id) override;
- virtual void OnNotificationClicked(
- const std::string& notification_id) override;
- virtual void OnNotificationButtonClicked(const std::string& notification_id,
- int button_index) override;
- virtual void OnNotificationDisplayed(
+ void OnNotificationAdded(const std::string& notification_id) override;
+ void OnNotificationRemoved(const std::string& notification_id,
+ bool by_user) override;
+ void OnNotificationUpdated(const std::string& notification_id) override;
+ void OnNotificationClicked(const std::string& notification_id) override;
+ void OnNotificationButtonClicked(const std::string& notification_id,
+ int button_index) override;
+ void OnNotificationDisplayed(
const std::string& notification_id,
const message_center::DisplaySource source) override;
- virtual void OnCenterVisibilityChanged(
+ void OnCenterVisibilityChanged(
message_center::Visibility visibility) override;
- virtual void OnQuietModeChanged(bool in_quiet_mode) override;
+ void OnQuietModeChanged(bool in_quiet_mode) override;
// Weak, global.
message_center::MessageCenter* message_center_;
« no previous file with comments | « chrome/browser/notifications/message_center_settings_controller.h ('k') | chrome/browser/notifications/notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698