Remove deprecated View::SetLayoutManager
https://chromium-review.googlesource.com/844760
This commit is contained in:
parent
f6648a0d4d
commit
4a38c2d800
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue