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

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 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..46499ad38f69d90b19676620aacee14257caf41f 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::OnDismissed() {
+ 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