diff --git a/shell/browser/api/atom_api_top_level_window.cc b/shell/browser/api/atom_api_top_level_window.cc index c3f82dfc4d0c7..f8101f92a15cd 100644 --- a/shell/browser/api/atom_api_top_level_window.cc +++ b/shell/browser/api/atom_api_top_level_window.cc @@ -1168,6 +1168,7 @@ void TopLevelWindow::BuildPrototype(v8::Isolate* isolate, .SetMethod("_isMenuBarAutoHide", &TopLevelWindow::IsMenuBarAutoHide) .SetProperty("autoHideMenuBar", &TopLevelWindow::IsMenuBarAutoHide, &TopLevelWindow::SetAutoHideMenuBar) + .SetMethod("setMenuBarVisibility", &TopLevelWindow::SetMenuBarVisibility) .SetMethod("isMenuBarVisible", &TopLevelWindow::IsMenuBarVisible) .SetMethod("setAspectRatio", &TopLevelWindow::SetAspectRatio) .SetMethod("previewFile", &TopLevelWindow::PreviewFile)