views: Don't retain MenuRunner on heap.

Sometimes the MenuHost would crash when the window is closed, the author
didn't recommend using MenuRunner on stack, but since we always run the
menu synchronously, this is no problem.
This commit is contained in:
Cheng Zhao 2014-07-21 21:42:01 +08:00
parent 1a79093378
commit 21949e2f0c
4 changed files with 6 additions and 18 deletions

View file

@ -7,10 +7,6 @@
#include "atom/browser/api/atom_api_menu.h"
namespace views {
class MenuRunner;
}
namespace atom {
namespace api {
@ -23,8 +19,6 @@ class MenuViews : public Menu {
virtual void Popup(Window* window) OVERRIDE;
private:
scoped_ptr<views::MenuRunner> menu_runner_;
DISALLOW_COPY_AND_ASSIGN(MenuViews);
};