diff options
author | avi <avi@chromium.org> | 2016-03-11 14:27:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-11 22:29:10 +0000 |
commit | 141dbc132f8aa2588fad4cf50fbfd7a319234b61 (patch) | |
tree | dd6936cfa5cf47c54eef1755c3c674bc3cae6b08 /extensions/browser/guest_view | |
parent | 6b3616d180a599aba1f2cbc734682454222efc39 (diff) | |
download | chromium_src-141dbc132f8aa2588fad4cf50fbfd7a319234b61.zip chromium_src-141dbc132f8aa2588fad4cf50fbfd7a319234b61.tar.gz chromium_src-141dbc132f8aa2588fad4cf50fbfd7a319234b61.tar.bz2 |
Remove the ability of webpages to specify strings for the onbeforeunload dialog.
BUG=587940
TEST=as in bug
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Review URL: https://codereview.chromium.org/1714573002
Cr-Commit-Position: refs/heads/master@{#380755}
Diffstat (limited to 'extensions/browser/guest_view')
-rw-r--r-- | extensions/browser/guest_view/web_view/javascript_dialog_helper.cc | 1 | ||||
-rw-r--r-- | extensions/browser/guest_view/web_view/javascript_dialog_helper.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/extensions/browser/guest_view/web_view/javascript_dialog_helper.cc b/extensions/browser/guest_view/web_view/javascript_dialog_helper.cc index 1ac3c848..83f69d9 100644 --- a/extensions/browser/guest_view/web_view/javascript_dialog_helper.cc +++ b/extensions/browser/guest_view/web_view/javascript_dialog_helper.cc @@ -72,7 +72,6 @@ void JavaScriptDialogHelper::RunJavaScriptDialog( void JavaScriptDialogHelper::RunBeforeUnloadDialog( content::WebContents* web_contents, - const base::string16& message_text, bool is_reload, const DialogClosedCallback& callback) { // This is called if the guest has a beforeunload event handler. diff --git a/extensions/browser/guest_view/web_view/javascript_dialog_helper.h b/extensions/browser/guest_view/web_view/javascript_dialog_helper.h index 804a206..1d40fb2 100644 --- a/extensions/browser/guest_view/web_view/javascript_dialog_helper.h +++ b/extensions/browser/guest_view/web_view/javascript_dialog_helper.h @@ -28,7 +28,6 @@ class JavaScriptDialogHelper : public content::JavaScriptDialogManager { const DialogClosedCallback& callback, bool* did_suppress_message) override; void RunBeforeUnloadDialog(content::WebContents* web_contents, - const base::string16& message_text, bool is_reload, const DialogClosedCallback& callback) override; bool HandleJavaScriptDialog(content::WebContents* web_contents, |