summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/button_dropdown_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views/button_dropdown_test.cc')
-rw-r--r--chrome/browser/ui/views/button_dropdown_test.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/ui/views/button_dropdown_test.cc b/chrome/browser/ui/views/button_dropdown_test.cc
index 4defa09..14a9f9b 100644
--- a/chrome/browser/ui/views/button_dropdown_test.cc
+++ b/chrome/browser/ui/views/button_dropdown_test.cc
@@ -15,7 +15,6 @@ class ButtonDropDownDragTest : public ViewEventTestBase,
public:
ButtonDropDownDragTest()
: button_(NULL),
- ALLOW_THIS_IN_INITIALIZER_LIST(menu_model_(this)),
menu_shown_(false),
menu_closed_(false) {
}
@@ -25,7 +24,7 @@ class ButtonDropDownDragTest : public ViewEventTestBase,
// ViewEventTestBase implementation.
virtual void SetUp() OVERRIDE {
- button_ = new views::ButtonDropDown(NULL, &menu_model_);
+ button_ = new views::ButtonDropDown(NULL, new ui::SimpleMenuModel(this));
ViewEventTestBase::SetUp();
}
@@ -125,7 +124,6 @@ class ButtonDropDownDragTest : public ViewEventTestBase,
private:
views::ButtonDropDown* button_;
- ui::SimpleMenuModel menu_model_;
bool menu_shown_;
bool menu_closed_;
};