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. |