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

Unified Diff: ash/system/user/user_view.cc

Issue 683473005: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/system/user/user_view.h ('k') | ash/system/web_notification/ash_popup_alignment_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/user/user_view.cc
diff --git a/ash/system/user/user_view.cc b/ash/system/user/user_view.cc
index 002a6f84c1d7f90ec2679b6ee107f2760b9b78df..6e4a7269865f7644fa18c6fed45489635672ad15 100644
--- a/ash/system/user/user_view.cc
+++ b/ash/system/user/user_view.cc
@@ -92,11 +92,10 @@ class LogoutButton : public TrayPopupLabelButton {
SetEnabled(!placeholder_);
}
- virtual ~LogoutButton() {}
+ ~LogoutButton() override {}
private:
- virtual void Paint(gfx::Canvas* canvas,
- const views::CullSet& cull_set) override {
+ void Paint(gfx::Canvas* canvas, const views::CullSet& cull_set) override {
// Just skip paint if this button used as a placeholder.
if (!placeholder_)
TrayPopupLabelButton::Paint(canvas, cull_set);
@@ -110,11 +109,11 @@ class UserViewMouseWatcherHost : public views::MouseWatcherHost {
public:
explicit UserViewMouseWatcherHost(const gfx::Rect& screen_area)
: screen_area_(screen_area) {}
- virtual ~UserViewMouseWatcherHost() {}
+ ~UserViewMouseWatcherHost() override {}
// Implementation of MouseWatcherHost.
- virtual bool Contains(const gfx::Point& screen_point,
- views::MouseWatcherHost::MouseEventType type) override {
+ bool Contains(const gfx::Point& screen_point,
+ views::MouseWatcherHost::MouseEventType type) override {
return screen_area_.Contains(screen_point);
}
@@ -130,14 +129,14 @@ class AddUserView : public views::View {
public:
// The |owner| is the view for which this view gets created.
AddUserView(ButtonFromView* owner);
- virtual ~AddUserView();
+ ~AddUserView() override;
// Get the anchor view for a message.
views::View* anchor() { return anchor_; }
private:
// Overridden from views::View.
- virtual gfx::Size GetPreferredSize() const override;
+ gfx::Size GetPreferredSize() const override;
// Create the additional client content for this item.
void AddContent();
« no previous file with comments | « ash/system/user/user_view.h ('k') | ash/system/web_notification/ash_popup_alignment_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698