summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
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/browser.cc
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/browser.cc')
-rw-r--r--chrome/browser/browser.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 4cee735..6379b34 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -349,6 +349,13 @@ void Browser::OpenDownloadsWindow(Profile* profile) {
}
// static
+void Browser::OpenExtensionsWindow(Profile* profile) {
+ Browser* browser = Browser::Create(profile);
+ browser->ShowExtensionsTab();
+ browser->window()->Show();
+}
+
+// static
void Browser::OpenHelpWindow(Profile* profile) {
Browser* browser = Browser::Create(profile);
browser->OpenHelpTab();