summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_menu_manager.h
diff options
context:
space:
mode:
authorasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-28 23:39:32 +0000
committerasargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-28 23:39:32 +0000
commitf50da8599dba7fa98910d59535232926ff667fe2 (patch)
tree67ff48a5ecf87faf06baf89ce345cb7343f0a49f /chrome/browser/extensions/extension_menu_manager.h
parentfab2b8f341094f1c24eefc61f8671c7ddc23ad38 (diff)
downloadchromium_src-f50da8599dba7fa98910d59535232926ff667fe2.zip
chromium_src-f50da8599dba7fa98910d59535232926ff667fe2.tar.gz
chromium_src-f50da8599dba7fa98910d59535232926ff667fe2.tar.bz2
Fix broken icons in new context menu items after removing previous items
BUG=59603 TEST=Have an extension add several context menu items. Verify that the context menu properly shows the extension's icon. Now call chrome.contextMenus.remove repeatedly to remove all the items. Then add one or more new ones. The icon should still show up properly, and not revert to the default puzzle piece icon. Review URL: http://codereview.chromium.org/4170008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64337 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_menu_manager.h')
-rw-r--r--chrome/browser/extensions/extension_menu_manager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_menu_manager.h b/chrome/browser/extensions/extension_menu_manager.h
index a58c1df..41edb61 100644
--- a/chrome/browser/extensions/extension_menu_manager.h
+++ b/chrome/browser/extensions/extension_menu_manager.h
@@ -244,6 +244,7 @@ class ExtensionMenuManager : public NotificationObserver {
private:
FRIEND_TEST_ALL_PREFIXES(ExtensionMenuManagerTest, DeleteParent);
+ FRIEND_TEST_ALL_PREFIXES(ExtensionMenuManagerTest, RemoveOneByOne);
// This is a helper function which takes care of de-selecting any other radio
// items in the same group (i.e. that are adjacent in the list).