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

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

Issue 1165893004: [Downloads] Prevent dangerous files from being opened automatically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use a blacklist instead of including all dangerous file types. Created 5 years, 6 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_prefs.h
diff --git a/chrome/browser/download/download_prefs.h b/chrome/browser/download/download_prefs.h
index e4d82594aa3b474cd1c8bfd2c5a6b5756221b7be..74efc32469f9b48aa1b43778bd39b38f9eb9e40a 100644
--- a/chrome/browser/download/download_prefs.h
+++ b/chrome/browser/download/download_prefs.h
@@ -66,8 +66,8 @@ class DownloadPrefs {
// |path.Extension()|.
bool IsAutoOpenEnabledBasedOnExtension(const base::FilePath& path) const;
- // Enables auto-open based on file extension. Returns true on success.
- // TODO(phajdan.jr): Add WARN_UNUSED_RESULT here.
+ // Enables auto-open based on file extension. Returns true on success. Will
+ // fail if the |file_name| isn't allowed to open automatically.
bool EnableAutoOpenBasedOnExtension(const base::FilePath& file_name);
// Disables auto-open based on file extension.

Powered by Google App Engine
This is Rietveld 408576698