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

Unified Diff: ui/views/controls/button/blue_button.h

Issue 1216673005: views::LabelButton should not call virtual methods from its constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20150703-Views-ButtonBorderRefactor
Patch Set: self review Created 5 years, 5 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/views/button_drag_utils.cc ('k') | ui/views/controls/button/blue_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/blue_button.h
diff --git a/ui/views/controls/button/blue_button.h b/ui/views/controls/button/blue_button.h
index 6335f0ac426e25d140cbed07beb786ac1a03110c..adec3aeafd44bbcc141ba3034b3c8d3ceb403854 100644
--- a/ui/views/controls/button/blue_button.h
+++ b/ui/views/controls/button/blue_button.h
@@ -10,12 +10,15 @@
namespace views {
-// A class representing a blue button.
-class VIEWS_EXPORT BlueButton : public LabelButton {
+// A class representing a blue button. Declared final because the constructor
+// calls virtual methods.
+class VIEWS_EXPORT BlueButton final : public LabelButton {
public:
static const char kViewClassName[];
+ // Constructs a BlueButton and initializes with LabelButton::InitAsButton().
BlueButton(ButtonListener* listener, const base::string16& text);
+
~BlueButton() override;
private:
« no previous file with comments | « ui/views/button_drag_utils.cc ('k') | ui/views/controls/button/blue_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698