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

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: Rebase, fix CrOS build 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 517036a7f05c1448806e16c74ce949aadc6de251..4ce97517ca1405dc821b86cbb217b7cfbc293f55 100644
--- a/chrome/browser/repost_form_warning_controller.cc
+++ b/chrome/browser/repost_form_warning_controller.cc
@@ -53,6 +53,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.

Powered by Google App Engine
This is Rietveld 408576698