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

Unified Diff: chrome/browser/notifications/notification_browsertest.cc

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
« no previous file with comments | « chrome/browser/notifications/notification.h ('k') | chrome/browser/notifications/notification_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/notification_browsertest.cc
diff --git a/chrome/browser/notifications/notification_browsertest.cc b/chrome/browser/notifications/notification_browsertest.cc
index fbbaecae28cb1855d25e80a7534c8a131af505d4..2b0545be76b1f546cf2fe61576a02236a456de2e 100644
--- a/chrome/browser/notifications/notification_browsertest.cc
+++ b/chrome/browser/notifications/notification_browsertest.cc
@@ -72,12 +72,12 @@ class MessageCenterChangeObserver
message_center::MessageCenter::Get()->AddObserver(this);
}
- virtual ~MessageCenterChangeObserver() {
+ ~MessageCenterChangeObserver() override {
message_center::MessageCenter::Get()->RemoveObserver(this);
}
// NotificationChangeObserver:
- virtual bool Wait() override {
+ bool Wait() override {
if (notification_received_)
return true;
@@ -87,18 +87,16 @@ class MessageCenterChangeObserver
}
// message_center::MessageCenterObserver:
- virtual void OnNotificationAdded(
- const std::string& notification_id) override {
+ void OnNotificationAdded(const std::string& notification_id) override {
OnMessageCenterChanged();
}
- virtual void OnNotificationRemoved(const std::string& notification_id,
- bool by_user) override {
+ void OnNotificationRemoved(const std::string& notification_id,
+ bool by_user) override {
OnMessageCenterChanged();
}
- virtual void OnNotificationUpdated(
- const std::string& notification_id) override {
+ void OnNotificationUpdated(const std::string& notification_id) override {
OnMessageCenterChanged();
}
« no previous file with comments | « chrome/browser/notifications/notification.h ('k') | chrome/browser/notifications/notification_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698