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..b3e70467877d60f88f4907e4f46b378d63ce713e 100644 |
--- a/chrome/browser/download/download_prefs.h |
+++ b/chrome/browser/download/download_prefs.h |
@@ -66,8 +66,12 @@ 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 automatically opening all downloads with the same file type as |
+ // |file_name|. Returns true on success. The call may fail if |file_name| |
+ // either doesn't have an extension (hence the file type cannot be |
+ // determined), or if the file type is one that is disallowed from being |
+ // opened automatically. See IsAllowedToOpenAutomatically() for details on the |
+ // latter. |
bool EnableAutoOpenBasedOnExtension(const base::FilePath& file_name); |
// Disables auto-open based on file extension. |