summaryrefslogtreecommitdiffstats
path: root/chrome/browser/app_controller_mac.mm
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 16:15:32 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 16:15:32 +0000
commit3896b185aa328b422ebfd002e382e0186ec3fbd7 (patch)
treed2a6db357bf72adeaff75b4953ad560e96215913 /chrome/browser/app_controller_mac.mm
parent71aa3446235a444e69185f972b5cec8216f64374 (diff)
downloadchromium_src-3896b185aa328b422ebfd002e382e0186ec3fbd7.zip
chromium_src-3896b185aa328b422ebfd002e382e0186ec3fbd7.tar.gz
chromium_src-3896b185aa328b422ebfd002e382e0186ec3fbd7.tar.bz2
Add "Report Bug" dialog to Mac OSX.
BUG= http://crbug.com/19282 TEST= Use report bug dialog on Mac OSX. Review URL: http://codereview.chromium.org/340039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30815 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_controller_mac.mm')
-rw-r--r--chrome/browser/app_controller_mac.mm13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/app_controller_mac.mm b/chrome/browser/app_controller_mac.mm
index d9c4082..c173740 100644
--- a/chrome/browser/app_controller_mac.mm
+++ b/chrome/browser/app_controller_mac.mm
@@ -21,6 +21,7 @@
#import "chrome/browser/cocoa/bookmark_menu_bridge.h"
#import "chrome/browser/cocoa/browser_window_cocoa.h"
#import "chrome/browser/cocoa/browser_window_controller.h"
+#import "chrome/browser/cocoa/bug_report_window_controller.h"
#import "chrome/browser/cocoa/history_menu_bridge.h"
#import "chrome/browser/cocoa/clear_browsing_data_controller.h"
#import "chrome/browser/cocoa/encoding_menu_controller_delegate_mac.h"
@@ -528,6 +529,17 @@ static bool g_is_opening_new_window = false;
case IDC_HELP_PAGE:
Browser::OpenHelpWindow(defaultProfile);
break;
+ case IDC_REPORT_BUG: {
+ Browser* browser = BrowserList::GetLastActive();
+ TabContents* current_tab = (browser != NULL) ?
+ browser->GetSelectedTabContents() : NULL;
+ BugReportWindowController* controller =
+ [[BugReportWindowController alloc]
+ initWithTabContents:current_tab
+ profile:[self defaultProfile]];
+ [controller runModalDialog];
+ break;
+ }
};
}
@@ -563,6 +575,7 @@ static bool g_is_opening_new_window = false;
menuState_->UpdateCommandEnabled(IDC_SHOW_HISTORY, true);
menuState_->UpdateCommandEnabled(IDC_SHOW_DOWNLOADS, true);
menuState_->UpdateCommandEnabled(IDC_HELP_PAGE, true);
+ menuState_->UpdateCommandEnabled(IDC_REPORT_BUG, true);
// TODO(pinkerton): ...more to come...
}