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

Unified Diff: ui/gfx/display_change_notifier_unittest.cc

Issue 667923002: Standardize usage of virtual/override/final in 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
« no previous file with comments | « ui/gfx/color_analysis_unittest.cc ('k') | ui/gfx/geometry/r_tree_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/display_change_notifier_unittest.cc
diff --git a/ui/gfx/display_change_notifier_unittest.cc b/ui/gfx/display_change_notifier_unittest.cc
index 700793a051e40b234244246b7e63456118292a4d..47b5bd064b64c2c3ff574af9fd751d9dd4459925 100644
--- a/ui/gfx/display_change_notifier_unittest.cc
+++ b/ui/gfx/display_change_notifier_unittest.cc
@@ -19,18 +19,14 @@ class MockDisplayObserver : public DisplayObserver {
latest_metrics_change_(DisplayObserver::DISPLAY_METRIC_NONE)
{}
- virtual ~MockDisplayObserver() { }
+ ~MockDisplayObserver() override {}
- virtual void OnDisplayAdded(const Display& display) override {
- display_added_++;
- }
+ void OnDisplayAdded(const Display& display) override { display_added_++; }
- virtual void OnDisplayRemoved(const Display& display) override {
- display_removed_++;
- }
+ void OnDisplayRemoved(const Display& display) override { display_removed_++; }
- virtual void OnDisplayMetricsChanged(const Display& display,
- uint32_t metrics) override {
+ void OnDisplayMetricsChanged(const Display& display,
+ uint32_t metrics) override {
display_changed_++;
latest_metrics_change_ = metrics;
}
« no previous file with comments | « ui/gfx/color_analysis_unittest.cc ('k') | ui/gfx/geometry/r_tree_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698