| Index: chrome/browser/ui/views/toolbar/back_button.cc
|
| diff --git a/chrome/browser/ui/views/toolbar/back_button.cc b/chrome/browser/ui/views/toolbar/back_button.cc
|
| index 05e3bc8545d677bfb1a39a97eba4e0c7c2a2943b..8ba47fd5907e88df4ea67898f5c06df8e44335d9 100644
|
| --- a/chrome/browser/ui/views/toolbar/back_button.cc
|
| +++ b/chrome/browser/ui/views/toolbar/back_button.cc
|
| @@ -27,11 +27,12 @@ void BackButton::SetLeadingMargin(int margin) {
|
| // Adjust border insets to follow the margin change,
|
| // which will be reflected in where the border is painted
|
| // through |GetThemePaintRect|.
|
| - views::LabelButtonBorder* border = new views::LabelButtonBorder(style());
|
| + scoped_ptr<views::LabelButtonBorder> border(
|
| + new views::LabelButtonBorder(style()));
|
| const gfx::Insets insets(border->GetInsets());
|
| border->set_insets(gfx::Insets(insets.top(), insets.left() + margin,
|
| insets.bottom(), insets.right()));
|
| - UpdateThemedBorder(border);
|
| + UpdateThemedBorder(border.PassAs<views::Border>());
|
|
|
| // Similarly fiddle the focus border. Value consistent with LabelButton
|
| // and TextButton.
|
|
|