summaryrefslogtreecommitdiffstats
path: root/chrome/browser/app_controller_mac.mm
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 17:59:36 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-18 17:59:36 +0000
commitbb37e6ec4460dc1160bd4a880ba5b4fc462c31c2 (patch)
tree5562d635973b0d49749c0d0cb7bd5a94a488f5e3 /chrome/browser/app_controller_mac.mm
parent52c71ed5a093463acb72598dc8b07a35fbb49842 (diff)
downloadchromium_src-bb37e6ec4460dc1160bd4a880ba5b4fc462c31c2.zip
chromium_src-bb37e6ec4460dc1160bd4a880ba5b4fc462c31c2.tar.gz
chromium_src-bb37e6ec4460dc1160bd4a880ba5b4fc462c31c2.tar.bz2
Mac: add Extensions to the Main Menu and to the Wrench Menu.
Changes to MainMenu.xib: Add Extensions (text: "^IDS_SHOW_EXTENSIONS_MAC", tag: IDC_MANAGE_EXTENSIONS, sends: -commandDispatch: to First Responder) to Main Menu -> Window, immediately below Downloads. Changes to Toolbar.xib: Add Extensions (text: "^IDS_SHOW_EXTENSIONS", others as above) to Wrench Menu, immediately below Downloads. Enable Extensions menu item when no browser window is open. BUG=25423 TEST=Make sure Extensions menu items in Main Menu -> Window and in the Wrench Menu work. Also make sure the former works when no browser window is open. Review URL: http://codereview.chromium.org/399072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32342 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac.mm')
-rw-r--r--chrome/browser/app_controller_mac.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index 03b3e12..41a97c7 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -535,6 +535,9 @@ static bool g_is_opening_new_window = false;
case IDC_SHOW_DOWNLOADS:
Browser::OpenDownloadsWindow(defaultProfile);
break;
+ case IDC_MANAGE_EXTENSIONS:
+ Browser::OpenExtensionsWindow(defaultProfile);
+ break;
case IDC_HELP_PAGE:
Browser::OpenHelpWindow(defaultProfile);
break;
@@ -583,6 +586,7 @@ static bool g_is_opening_new_window = false;
menuState_->UpdateCommandEnabled(IDC_FOCUS_LOCATION, true);
menuState_->UpdateCommandEnabled(IDC_SHOW_HISTORY, true);
menuState_->UpdateCommandEnabled(IDC_SHOW_DOWNLOADS, true);
+ menuState_->UpdateCommandEnabled(IDC_MANAGE_EXTENSIONS, true);
menuState_->UpdateCommandEnabled(IDC_HELP_PAGE, true);
menuState_->UpdateCommandEnabled(IDC_REPORT_BUG, true);
// TODO(pinkerton): ...more to come...