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

Unified Diff: ash/wm/window_state_unittest.cc

Issue 645513008: 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/window_state.cc ('k') | ash/wm/wm_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state_unittest.cc
diff --git a/ash/wm/window_state_unittest.cc b/ash/wm/window_state_unittest.cc
index 79f765a679bb4e5dcc30e22e47b460fa4eb19a28..d816cf7d11ba78e0f66a6fd659b7367f98e785fa 100644
--- a/ash/wm/window_state_unittest.cc
+++ b/ash/wm/window_state_unittest.cc
@@ -21,26 +21,22 @@ class AlwaysMaximizeTestState : public WindowState::State {
public:
explicit AlwaysMaximizeTestState(WindowStateType initial_state_type)
: state_type_(initial_state_type) {}
- virtual ~AlwaysMaximizeTestState() {}
+ ~AlwaysMaximizeTestState() override {}
// WindowState::State overrides:
- virtual void OnWMEvent(WindowState* window_state,
- const WMEvent* event) override {
+ void OnWMEvent(WindowState* window_state, const WMEvent* event) override {
// We don't do anything here.
}
- virtual WindowStateType GetType() const override {
- return state_type_;
- }
- virtual void AttachState(
- WindowState* window_state,
- WindowState::State* previous_state) override {
+ WindowStateType GetType() const override { return state_type_; }
+ void AttachState(WindowState* window_state,
+ WindowState::State* previous_state) override {
// We always maximize.
if (state_type_ != WINDOW_STATE_TYPE_MAXIMIZED) {
window_state->Maximize();
state_type_ = WINDOW_STATE_TYPE_MAXIMIZED;
}
}
- virtual void DetachState(WindowState* window_state) override {}
+ void DetachState(WindowState* window_state) override {}
private:
WindowStateType state_type_;
« no previous file with comments | « ash/wm/window_state.cc ('k') | ash/wm/wm_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698