summaryrefslogtreecommitdiffstats
path: root/chrome/browser/js_modal_dialog_mac.mm
diff options
context:
space:
mode:
authorpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-10 20:19:12 +0000
committerpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-10 20:19:12 +0000
commit1a3eba4ac216a8687e61499318b8d1167ecfb962 (patch)
tree5190274a0341d310768b23aad7631fb709a455f4 /chrome/browser/js_modal_dialog_mac.mm
parentf4032c709d33424c8e30e38bbaf8024eb4d293b1 (diff)
downloadchromium_src-1a3eba4ac216a8687e61499318b8d1167ecfb962.zip
chromium_src-1a3eba4ac216a8687e61499318b8d1167ecfb962.tar.gz
chromium_src-1a3eba4ac216a8687e61499318b8d1167ecfb962.tar.bz2
Implement missing method and re-enable three browser_tests on Mac.
BUG=29424 TEST=covered by browser_tests Review URL: http://codereview.chromium.org/669133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41198 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/js_modal_dialog_mac.mm')
-rw-r--r--chrome/browser/js_modal_dialog_mac.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/js_modal_dialog_mac.mm b/chrome/browser/js_modal_dialog_mac.mm
index 9ab04d8..44eb86e 100644
--- a/chrome/browser/js_modal_dialog_mac.mm
+++ b/chrome/browser/js_modal_dialog_mac.mm
@@ -157,8 +157,10 @@ int JavaScriptAppModalDialog::GetDialogButtons() {
return 0;
}
+// On Mac, this is only used in testing.
void JavaScriptAppModalDialog::AcceptWindow() {
- NOTIMPLEMENTED();
+ NSButton* first = [[dialog_ buttons] objectAtIndex:0];
+ [first performClick:nil];
}
void JavaScriptAppModalDialog::CancelWindow() {