Index: chrome/browser/extensions/api/downloads/downloads_api.cc |
diff --git a/chrome/browser/extensions/api/downloads/downloads_api.cc b/chrome/browser/extensions/api/downloads/downloads_api.cc |
index 2e21ccabf9e5981bebaef8a1920ecb220660c3ac..7b10c9eb7b049cc91f3ca43e5172538f010bea94 100644 |
--- a/chrome/browser/extensions/api/downloads/downloads_api.cc |
+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc |
@@ -861,9 +861,6 @@ bool DownloadsGetFileIconFunction::RunImpl() { |
if (!download_item && incognito_manager) |
download_item = incognito_manager->GetDownload(params->download_id); |
if (!download_item || download_item->GetTargetFilePath().empty()) { |
- // The DownloadItem is is added to history when the path is determined. If |
- // the download is not in history, then we don't have a path / final |
- // filename and no icon. |
error_ = download_extension_errors::kInvalidOperationError; |
return false; |
} |