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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (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/ui/cocoa/profiles/profile_menu_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm
index 5885b7f1a05cbe015adc717219f78f98bfa55c67..ce653b7d7ec794d39141c54d47bfe169d475a990 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm
@@ -37,21 +37,19 @@ class Observer : public chrome::BrowserListObserver,
BrowserList::AddObserver(this);
}
- virtual ~Observer() {
- BrowserList::RemoveObserver(this);
- }
+ ~Observer() override { BrowserList::RemoveObserver(this); }
// chrome::BrowserListObserver:
- virtual void OnBrowserAdded(Browser* browser) override {}
- virtual void OnBrowserRemoved(Browser* browser) override {
+ void OnBrowserAdded(Browser* browser) override {}
+ void OnBrowserRemoved(Browser* browser) override {
[controller_ activeBrowserChangedTo:chrome::GetLastActiveBrowser()];
}
- virtual void OnBrowserSetLastActive(Browser* browser) override {
+ void OnBrowserSetLastActive(Browser* browser) override {
[controller_ activeBrowserChangedTo:browser];
}
// AvatarMenuObserver:
- virtual void OnAvatarMenuChanged(AvatarMenu* menu) override {
+ void OnAvatarMenuChanged(AvatarMenu* menu) override {
[controller_ rebuildMenu];
}

Powered by Google App Engine
This is Rietveld 408576698