Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2457)

Unified Diff: chrome/browser/repost_form_warning_controller.cc

Issue 18179004: Dismiss action in tab modal dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test for Mac Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/repost_form_warning_controller.cc
diff --git a/chrome/browser/repost_form_warning_controller.cc b/chrome/browser/repost_form_warning_controller.cc
index 0d9ac565533a37cc9d38d5e935b187cad60e4990..c7f0c082ac929518694cdc4046e6b66f083632ad 100644
--- a/chrome/browser/repost_form_warning_controller.cc
+++ b/chrome/browser/repost_form_warning_controller.cc
@@ -52,6 +52,10 @@ void RepostFormWarningController::OnCanceled() {
web_contents()->GetController().CancelPendingReload();
}
+void RepostFormWarningController::OnClosed() {
+ web_contents()->GetController().CancelPendingReload();
+}
+
void RepostFormWarningController::BeforeFormRepostWarningShow() {
// Close the dialog if we show an additional dialog, to avoid them
// stacking up.
« no previous file with comments | « chrome/browser/repost_form_warning_controller.h ('k') | chrome/browser/ui/cocoa/tab_modal_confirm_dialog_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698