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

Unified Diff: chrome/browser/download/download_danger_prompt.h

Issue 1672983002: Fix download danger prompt buttons/actions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix for tests Created 4 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/download/download_danger_prompt_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_danger_prompt.h
diff --git a/chrome/browser/download/download_danger_prompt.h b/chrome/browser/download/download_danger_prompt.h
index 218d388e4b921e24d7eacd08f2025136a9e73f24..4301ea6958a7e51b7b6bcb58cc292d130a817b45 100644
--- a/chrome/browser/download/download_danger_prompt.h
+++ b/chrome/browser/download/download_danger_prompt.h
@@ -25,8 +25,11 @@ class DownloadDangerPrompt {
public:
// Actions resulting from showing the danger prompt.
enum Action {
+ // The user chose to proceed down the dangerous path.
ACCEPT,
+ // The user chose not to proceed down the dangerous path.
CANCEL,
+ // The user dismissed the dialog without making an explicit choice.
DISMISS,
};
typedef base::Callback<void(Action)> OnDone;
« no previous file with comments | « no previous file | chrome/browser/ui/views/download/download_danger_prompt_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698