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

Unified Diff: ash/wm/workspace/workspace_event_handler_unittest.cc

Issue 681913002: Standardize usage of virtual/override/final specifiers. (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 | « ash/wm/workspace/workspace_event_handler.h ('k') | ash/wm/workspace/workspace_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_event_handler_unittest.cc
diff --git a/ash/wm/workspace/workspace_event_handler_unittest.cc b/ash/wm/workspace/workspace_event_handler_unittest.cc
index 85572fc8d50413ec5d27791d258fcb696ca7f6be..99dc2c8c421fcc9b35b0c0c9c3ef21a9b793bb53 100644
--- a/ash/wm/workspace/workspace_event_handler_unittest.cc
+++ b/ash/wm/workspace/workspace_event_handler_unittest.cc
@@ -32,7 +32,7 @@ namespace ash {
class WorkspaceEventHandlerTest : public test::AshTestBase {
public:
WorkspaceEventHandlerTest() {}
- virtual ~WorkspaceEventHandlerTest() {}
+ ~WorkspaceEventHandlerTest() override {}
protected:
aura::Window* CreateTestWindow(aura::WindowDelegate* delegate,
@@ -58,9 +58,7 @@ class WindowPropertyObserver : public aura::WindowObserver {
window->AddObserver(this);
}
- virtual ~WindowPropertyObserver() {
- window_->RemoveObserver(this);
- }
+ ~WindowPropertyObserver() override { window_->RemoveObserver(this); }
bool DidPropertyChange(const void* property) const {
return std::find(properties_changed_.begin(),
@@ -69,9 +67,9 @@ class WindowPropertyObserver : public aura::WindowObserver {
}
private:
- virtual void OnWindowPropertyChanged(aura::Window* window,
- const void* key,
- intptr_t old) override {
+ void OnWindowPropertyChanged(aura::Window* window,
+ const void* key,
+ intptr_t old) override {
properties_changed_.push_back(key);
}
« no previous file with comments | « ash/wm/workspace/workspace_event_handler.h ('k') | ash/wm/workspace/workspace_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698