diff options
author | pam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 13:38:51 +0000 |
---|---|---|
committer | pam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-14 13:38:51 +0000 |
commit | ab96d311c26b03f53965ce1c7a20d68da764f9ff (patch) | |
tree | ecdd48ab93568a090f148d8bb1a6b285b4a65080 /chrome/browser/js_modal_dialog.h | |
parent | 4600d7b1f76c5df5be297332327c8d6e11f641ee (diff) | |
download | chromium_src-ab96d311c26b03f53965ce1c7a20d68da764f9ff.zip chromium_src-ab96d311c26b03f53965ce1c7a20d68da764f9ff.tar.gz chromium_src-ab96d311c26b03f53965ce1c7a20d68da764f9ff.tar.bz2 |
Suppress additional JS alerts on Cancel as well as on Accept.
BUG=26450
TEST=Load webpage with three JS alerts. Check "Prevent this page from creating
additional dialogs" on the second, and Cancel that alert. Ensure that the
third alert is not shown.
Review URL: http://codereview.chromium.org/3792001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/js_modal_dialog.h')
-rw-r--r-- | chrome/browser/js_modal_dialog.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/js_modal_dialog.h b/chrome/browser/js_modal_dialog.h index 858dba6..440633f 100644 --- a/chrome/browser/js_modal_dialog.h +++ b/chrome/browser/js_modal_dialog.h @@ -67,7 +67,7 @@ class JavaScriptAppModalDialog : public AppModalDialog, JavaScriptAppModalDialogDelegate* delegate() const { return delegate_; } // Callbacks from NativeDialog when the user accepts or cancels the dialog. - void OnCancel(); + void OnCancel(bool suppress_js_messages); void OnAccept(const std::wstring& prompt_text, bool suppress_js_messages); void OnClose(); |