| Index: chrome/browser/ui/views/options/exceptions_view.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/options/exceptions_view.cc (revision 74117)
|
| +++ chrome/browser/ui/views/options/exceptions_view.cc (working copy)
|
| @@ -83,8 +83,7 @@
|
| remove_button_, remove_all_button_ };
|
|
|
| // The buttons are placed in the parent, but we need to lay them out.
|
| - int max_y =
|
| - GetParent()->GetLocalBounds().bottom() - views::kButtonVEdgeMargin;
|
| + int max_y = parent()->GetLocalBounds().bottom() - views::kButtonVEdgeMargin;
|
| int x = kPanelHorizMargin;
|
|
|
| for (size_t i = 0; i < arraysize(buttons); ++i) {
|
| @@ -196,11 +195,10 @@
|
| UTF16ToWide(l10n_util::GetStringUTF16(IDS_EXCEPTIONS_REMOVEALL_BUTTON)));
|
| remove_all_button_->set_tag(IDS_EXCEPTIONS_REMOVEALL_BUTTON);
|
|
|
| - View* parent = GetParent();
|
| - parent->AddChildView(add_button_);
|
| - parent->AddChildView(edit_button_);
|
| - parent->AddChildView(remove_button_);
|
| - parent->AddChildView(remove_all_button_);
|
| + parent()->AddChildView(add_button_);
|
| + parent()->AddChildView(edit_button_);
|
| + parent()->AddChildView(remove_button_);
|
| + parent()->AddChildView(remove_all_button_);
|
|
|
| GridLayout* layout = new GridLayout(this);
|
| layout->SetInsets(kExceptionsViewInsetSize, kExceptionsViewInsetSize,
|
|
|