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

Unified Diff: chrome/browser/extensions/extension_storage_monitor_browsertest.cc

Issue 666153002: Standardize usage of virtual/override/final in chrome/browser/extensions/ (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/extensions/extension_storage_monitor_browsertest.cc
diff --git a/chrome/browser/extensions/extension_storage_monitor_browsertest.cc b/chrome/browser/extensions/extension_storage_monitor_browsertest.cc
index c4aebb0010209c93f5b17edd9a9c59a072b1bb82..d2a39668c3789b683d1dcc9cb9e845146895cbe8 100644
--- a/chrome/browser/extensions/extension_storage_monitor_browsertest.cc
+++ b/chrome/browser/extensions/extension_storage_monitor_browsertest.cc
@@ -36,9 +36,7 @@ class NotificationObserver : public message_center::MessageCenterObserver {
message_center_->AddObserver(this);
}
- virtual ~NotificationObserver() {
- message_center_->RemoveObserver(this);
- }
+ ~NotificationObserver() override { message_center_->RemoveObserver(this); }
bool HasReceivedNotification() const {
return received_notifications_.find(target_notification_id_) !=
@@ -59,8 +57,7 @@ class NotificationObserver : public message_center::MessageCenterObserver {
private:
// MessageCenterObserver implementation:
- virtual void OnNotificationAdded(
- const std::string& notification_id) override {
+ void OnNotificationAdded(const std::string& notification_id) override {
received_notifications_.insert(notification_id);
if (waiting_ && HasReceivedNotification())
@@ -81,7 +78,7 @@ class ExtensionStorageMonitorTest : public ExtensionBrowserTest {
protected:
// ExtensionBrowserTest overrides:
- virtual void SetUpOnMainThread() override {
+ void SetUpOnMainThread() override {
ExtensionBrowserTest::SetUpOnMainThread();
InitStorageMonitor();
« no previous file with comments | « chrome/browser/extensions/extension_storage_monitor.cc ('k') | chrome/browser/extensions/extension_storage_monitor_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698