Fix building on Mac
This commit is contained in:
parent
ef8b20af65
commit
f78f94d4f1
1 changed files with 2 additions and 2 deletions
|
@ -58,10 +58,10 @@ void MenuMac::PopupAt(Window* window, int x, int y) {
|
|||
if (!web_contents)
|
||||
return;
|
||||
|
||||
NSView* view = web_contents->GetContentNativeView();
|
||||
NSMenu* menu = [menu_controller menu];
|
||||
base::scoped_nsobject<AtomMenuController> menu_controller(
|
||||
[[AtomMenuController alloc] initWithModel:model_.get()]);
|
||||
NSMenu* menu = [menu_controller menu];
|
||||
NSView* view = web_contents->GetContentNativeView();
|
||||
|
||||
// Show the menu.
|
||||
[menu popUpMenuPositioningItem:[menu itemAtIndex:0]
|
||||
|
|
Loading…
Reference in a new issue