Remove deprecated View::SetLayoutManager

https://chromium-review.googlesource.com/844760
This commit is contained in:
Aleksei Kuzmin 2018-04-18 19:31:45 +02:00 committed by Samuel Attard
parent f6648a0d4d
commit 4a38c2d800

View file

@ -29,7 +29,8 @@ MenuBar::MenuBar(views::View* window)
: background_color_(kDefaultColor), window_(window) {
RefreshColorCache();
UpdateViewColors();
SetLayoutManager(new views::BoxLayout(views::BoxLayout::kHorizontal));
SetLayoutManager(std::make_unique<views::BoxLayout>(
views::BoxLayout::kHorizontal));
window_->GetFocusManager()->AddFocusChangeListener(this);
}