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

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: 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/download/download_danger_prompt.cc
diff --git a/chrome/browser/download/download_danger_prompt.cc b/chrome/browser/download/download_danger_prompt.cc
index 7368b0bba02b889835bc5db66d9d98cb0bf1e8f3..9e2c4ca1a4a0478ee6d3232e08da00257ce362f2 100644
--- a/chrome/browser/download/download_danger_prompt.cc
+++ b/chrome/browser/download/download_danger_prompt.cc
@@ -41,6 +41,7 @@ class DownloadDangerPromptImpl
virtual string16 GetAcceptButtonTitle() OVERRIDE;
virtual void OnAccepted() OVERRIDE;
virtual void OnCanceled() OVERRIDE;
+ virtual void OnClosed() OVERRIDE;
void RunDone(Action action);
@@ -142,6 +143,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
« no previous file with comments | « chrome/browser/chromeos/ui/idle_logout_dialog_view_browsertest.cc ('k') | chrome/browser/repost_form_warning_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698