Index: webkit/glue/webmenurunner_mac.mm |
diff --git a/webkit/glue/webmenurunner_mac.mm b/webkit/glue/webmenurunner_mac.mm |
index 7dce0a6bbc89ad605c8338da753f1b03c9cca43f..65fcb7f7d72116e75ad4e73372c61474d3da0524 100644 |
--- a/webkit/glue/webmenurunner_mac.mm |
+++ b/webkit/glue/webmenurunner_mac.mm |
@@ -66,6 +66,10 @@ static NSString* NSWritingDirectionAttributeName = @"NSWritingDirection"; |
NSMenuItem* menuItem = [menu_ addItemWithTitle:title |
action:@selector(menuItemSelected:) |
keyEquivalent:@""]; |
+ if (!item.toolTip.empty()) { |
+ NSString* toolTip = base::SysUTF16ToNSString(item.toolTip); |
+ [menuItem setToolTip:toolTip]; |
+ } |
[menuItem setEnabled:(item.enabled && item.type != WebMenuItem::GROUP)]; |
[menuItem setTarget:self]; |