diff --git a/atom/browser/ui/views/menu_bar.cc b/atom/browser/ui/views/menu_bar.cc index 9821ccc537b..535af8f2803 100644 --- a/atom/browser/ui/views/menu_bar.cc +++ b/atom/browser/ui/views/menu_bar.cc @@ -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::kHorizontal)); window_->GetFocusManager()->AddFocusChangeListener(this); }