Rename roles

This commit is contained in:
Zhuo Lu 2017-11-20 16:31:21 -08:00 committed by Cheng Zhao
parent 1ab4504e94
commit dcdc3621ac
2 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ Role kRolesMap[] = {
{ @selector(selectPreviousTab:), "selectprevioustab" },
{ @selector(mergeAllWindows:), "mergeallwindows" },
{ @selector(moveTabToNewWindow:), "movetabtonewwindow" },
{ @selector(clearRecentDocuments:), "clearrecent" },
{ @selector(clearRecentDocuments:), "clearrecentdocuments" },
};
} // namespace
@ -218,7 +218,7 @@ NSMenu* swapMenu_;
[NSApp setHelpMenu:submenu];
else if (role == base::ASCIIToUTF16("services"))
[NSApp setServicesMenu:submenu];
else if (role == base::ASCIIToUTF16("openrecent"))
else if (role == base::ASCIIToUTF16("recentdocuments"))
[self replaceSubmenuShowingRecentDocuments:item];
} else {
// The MenuModel works on indexes so we can't just set the command id as the

View file

@ -102,10 +102,10 @@ const roles = {
services: {
label: 'Services'
},
openrecent: {
recentdocuments: {
label: 'Open Recent'
},
clearrecent: {
clearrecentdocuments: {
label: 'Clear Menu'
},
startspeaking: {