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

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

Issue 6324020: Tweak the auto-open algorithm to permit JNLP to auto-open iff the user has... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « chrome/browser/download/download_manager.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_util.h
===================================================================
--- chrome/browser/download/download_util.h (revision 72765)
+++ chrome/browser/download/download_util.h (working copy)
@@ -207,8 +207,11 @@
// Returns a .crdownload intermediate path for the |suggested_path|.
FilePath GetCrDownloadPath(const FilePath& suggested_path);
-// Whether a given download should be considered potentially dangerous.
-bool IsDangerous(DownloadCreateInfo *info, Profile* profile);
+// Returns true if this download should show the "dangerous file" warning.
+// Various factors are considered, such as the type of the file, whether a
+// user action initiated the download, and whether the user has explictly
+// marked the file type as "auto open".
+bool IsDangerous(DownloadCreateInfo* info, Profile* profile, bool auto_open);
} // namespace download_util
« no previous file with comments | « chrome/browser/download/download_manager.cc ('k') | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698