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

Unified Diff: ui/views/focus/focus_manager_unittest.cc

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/controls/button/menu_button.cc ('k') | ui/views/focus/focus_traversal_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/focus_manager_unittest.cc
diff --git a/ui/views/focus/focus_manager_unittest.cc b/ui/views/focus/focus_manager_unittest.cc
index c9032644ba37c08c9f8e9196aaab83007aaff16a..bc7887174e654a6b6159bf8c3503553375ce4ed5 100644
--- a/ui/views/focus/focus_manager_unittest.cc
+++ b/ui/views/focus/focus_manager_unittest.cc
@@ -526,9 +526,8 @@ class FocusManagerDtorTest : public FocusManagerTest {
public:
LabelButtonDtorTracked(const base::string16& text,
DtorTrackVector* dtor_tracker)
- : LabelButton(NULL, text),
- dtor_tracker_(dtor_tracker) {
- SetStyle(STYLE_BUTTON);
+ : LabelButton(nullptr), dtor_tracker_(dtor_tracker) {
+ InitAsButton(text);
};
~LabelButtonDtorTracked() override {
dtor_tracker_->push_back("LabelButtonDtorTracked");
« no previous file with comments | « ui/views/controls/button/menu_button.cc ('k') | ui/views/focus/focus_traversal_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698