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

Unified Diff: ash/first_run/desktop_cleaner.cc

Issue 680153002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix formatting 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 | « ash/extended_desktop_unittest.cc ('k') | ash/first_run/first_run_helper_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/first_run/desktop_cleaner.cc
diff --git a/ash/first_run/desktop_cleaner.cc b/ash/first_run/desktop_cleaner.cc
index 6f0dfb114adbb38a1c759f35ec371786d90ed066..27c1d07ceffdc23e549f9e15370c2964c272c76a 100644
--- a/ash/first_run/desktop_cleaner.cc
+++ b/ash/first_run/desktop_cleaner.cc
@@ -41,7 +41,7 @@ class ContainerHider : public aura::WindowObserver,
layer->SetOpacity(0.0);
}
- virtual ~ContainerHider() {
+ ~ContainerHider() override {
if (container_was_hidden_ || !container_)
return;
if (!WasAnimationCompletedForProperty(ui::LayerAnimationElement::OPACITY)) {
@@ -57,12 +57,10 @@ class ContainerHider : public aura::WindowObserver,
private:
// Overriden from ui::ImplicitAnimationObserver.
- virtual void OnImplicitAnimationsCompleted() override {
- container_->Hide();
- }
+ void OnImplicitAnimationsCompleted() override { container_->Hide(); }
// Overriden from aura::WindowObserver.
- virtual void OnWindowDestroying(aura::Window* window) override {
+ void OnWindowDestroying(aura::Window* window) override {
DCHECK(window == container_);
container_ = NULL;
}
@@ -81,11 +79,11 @@ class NotificationBlocker : public message_center::NotificationBlocker {
NotifyBlockingStateChanged();
}
- virtual ~NotificationBlocker() {};
+ ~NotificationBlocker() override {}
private:
// Overriden from message_center::NotificationBlocker.
- virtual bool ShouldShowNotificationAsPopup(
+ bool ShouldShowNotificationAsPopup(
const message_center::NotifierId& notifier_id) const override {
return false;
}
« no previous file with comments | « ash/extended_desktop_unittest.cc ('k') | ash/first_run/first_run_helper_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698