Fix crash when switching menus in menubar

This commit is contained in:
Cheng Zhao 2017-08-28 18:59:06 +09:00
parent b2f3625eaa
commit 4febbec102
2 changed files with 18 additions and 8 deletions

View file

@ -55,6 +55,9 @@ class MenuDelegate : public views::MenuDelegate {
std::unique_ptr<views::MenuDelegate> adapter_;
std::unique_ptr<views::MenuRunner> menu_runner_;
// The menu button to switch to.
views::MenuButton* button_to_open_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(MenuDelegate);
};