summaryrefslogtreecommitdiff
path: root/chromium/ui/views/examples/box_layout_example.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/examples/box_layout_example.cc')
-rw-r--r--chromium/ui/views/examples/box_layout_example.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/ui/views/examples/box_layout_example.cc b/chromium/ui/views/examples/box_layout_example.cc
index 2c4fba15fb2..a17fd295dee 100644
--- a/chromium/ui/views/examples/box_layout_example.cc
+++ b/chromium/ui/views/examples/box_layout_example.cc
@@ -331,10 +331,10 @@ void BoxLayoutExample::CreateExampleView(View* container) {
border_insets_[i] =
CreateRawTextfield(horizontal_pos, border_insets_[0]->y(), true);
- collapse_margins_ = new Checkbox(base::ASCIIToUTF16("Collapse margins"));
+ collapse_margins_ =
+ new Checkbox(base::ASCIIToUTF16("Collapse margins"), this);
collapse_margins_->SetPosition(gfx::Point(kPadding, vertical_pos));
collapse_margins_->SizeToPreferredSize();
- collapse_margins_->set_listener(this);
control_panel_->AddChildView(collapse_margins_);
UpdateLayoutManager();