| Index: chrome/renderer/plugins/chrome_plugin_placeholder.cc
|
| diff --git a/chrome/renderer/plugins/chrome_plugin_placeholder.cc b/chrome/renderer/plugins/chrome_plugin_placeholder.cc
|
| index dcbeca824b97e8fe0a6d8fea38670d7a20bfd921..375c3da5e934246d9157761de07e99cb7c93cd51 100644
|
| --- a/chrome/renderer/plugins/chrome_plugin_placeholder.cc
|
| +++ b/chrome/renderer/plugins/chrome_plugin_placeholder.cc
|
| @@ -331,13 +331,15 @@ void ChromePluginPlaceholder::ShowContextMenu(const WebMouseEvent& event) {
|
|
|
| content::ContextMenuParams params;
|
|
|
| - content::MenuItem name_item;
|
| - name_item.label = title_;
|
| - params.custom_items.push_back(name_item);
|
| -
|
| - content::MenuItem separator_item;
|
| - separator_item.type = content::MenuItem::SEPARATOR;
|
| - params.custom_items.push_back(separator_item);
|
| + if (!title_.empty()) {
|
| + content::MenuItem name_item;
|
| + name_item.label = title_;
|
| + params.custom_items.push_back(name_item);
|
| +
|
| + content::MenuItem separator_item;
|
| + separator_item.type = content::MenuItem::SEPARATOR;
|
| + params.custom_items.push_back(separator_item);
|
| + }
|
|
|
| if (!GetPluginInfo().path.value().empty()) {
|
| content::MenuItem run_item;
|
|
|