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

Unified Diff: chrome/browser/download/download_danger_prompt.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/download/download_danger_prompt.cc
diff --git a/chrome/browser/download/download_danger_prompt.cc b/chrome/browser/download/download_danger_prompt.cc
index 09c1624dbf2d62461355d548ac0e4588ebc9ba8f..472c74a848e7f2e7c9705e06286e90b95d2b497f 100644
--- a/chrome/browser/download/download_danger_prompt.cc
+++ b/chrome/browser/download/download_danger_prompt.cc
@@ -40,6 +40,7 @@ class DownloadDangerPromptImpl
virtual string16 GetAcceptButtonTitle() OVERRIDE;
virtual void OnAccepted() OVERRIDE;
virtual void OnCanceled() OVERRIDE;
+ virtual void OnClosed() OVERRIDE;
void RunDone(Action action);
@@ -139,6 +140,10 @@ void DownloadDangerPromptImpl::OnCanceled() {
RunDone(CANCEL);
}
+void DownloadDangerPromptImpl::OnClosed() {
+ RunDone(CANCEL);
+}
+
void DownloadDangerPromptImpl::RunDone(Action action) {
// Invoking the callback can cause the download item state to change or cause
// the constrained window to close, and |callback| refers to a member

Powered by Google App Engine
This is Rietveld 408576698