Index: chrome/browser/extensions/context_menu_matcher.cc |
diff --git a/chrome/browser/extensions/context_menu_matcher.cc b/chrome/browser/extensions/context_menu_matcher.cc |
index 0e7adbddbdfc61208f56cfd0c7d2a7e67421d05e..fee3326fbae928401a31811e6b6935e007545585 100644 |
--- a/chrome/browser/extensions/context_menu_matcher.cc |
+++ b/chrome/browser/extensions/context_menu_matcher.cc |
@@ -30,7 +30,8 @@ ContextMenuMatcher::ContextMenuMatcher( |
void ContextMenuMatcher::AppendExtensionItems( |
const MenuItem::ExtensionKey& extension_key, |
const base::string16& selection_text, |
- int* index) { |
+ int* index, |
+ bool include_icons) { |
DCHECK_GE(*index, 0); |
int max_index = |
IDC_EXTENSIONS_CONTEXT_CUSTOM_LAST - IDC_EXTENSIONS_CONTEXT_CUSTOM_FIRST; |
@@ -86,7 +87,8 @@ void ContextMenuMatcher::AppendExtensionItems( |
RecursivelyAppendExtensionItems(submenu_items, can_cross_incognito, |
selection_text, submenu, index); |
} |
- SetExtensionIcon(extension_key.extension_id); |
+ if (include_icons) |
+ SetExtensionIcon(extension_key.extension_id); |
} |
} |