Index: chrome/browser/ui/cocoa/content_setting_bubble_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/content_setting_bubble_cocoa.mm b/chrome/browser/ui/cocoa/content_setting_bubble_cocoa.mm |
index 26c38279652c04986d242431bc428dccb19c1e21..4ac68c0173549eeb89849ff7cf615e57a9dcdeec 100644 |
--- a/chrome/browser/ui/cocoa/content_setting_bubble_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/content_setting_bubble_cocoa.mm |
@@ -242,12 +242,9 @@ NSTextField* LabelWithFrame(NSString* text, const NSRect& frame) { |
} else { |
for (std::set<std::string>::iterator it = plugins.begin(); |
it != plugins.end(); ++it) { |
- NSString* name; |
- NPAPI::PluginList::PluginMap groups; |
- NPAPI::PluginList::Singleton()->GetPluginGroups(false, &groups); |
- if (groups.find(*it) != groups.end()) |
- name = base::SysUTF16ToNSString(groups[*it]->GetGroupName()); |
- else |
+ NSString* name = SysUTF16ToNSString( |
+ NPAPI::PluginList::Singleton()->GetPluginGroupName(*it)); |
+ if ([name length] == 0) |
name = base::SysUTF8ToNSString(*it); |
[pluginArray addObject:name]; |
} |