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

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: Created 5 years, 7 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..b481158af44db0a9d823b41d5818927144bdcf60 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| is allowed to open automatically.
Randy Smith (Not in Mondays) 2015/06/03 23:44:08 "is allowed" -> "isn't allowed"?
asanka 2015/06/04 15:30:48 Done.
bool EnableAutoOpenBasedOnExtension(const base::FilePath& file_name);
// Disables auto-open based on file extension.

Powered by Google App Engine
This is Rietveld 408576698