Index: chrome/browser/ui/webui/downloads_dom_handler.cc |
diff --git a/chrome/browser/ui/webui/downloads_dom_handler.cc b/chrome/browser/ui/webui/downloads_dom_handler.cc |
index 3600c5f5cdd41c4816669f6475e97ecfb57e4d19..3b50c9af54d6496d2f7c286e94c704da9a01c892 100644 |
--- a/chrome/browser/ui/webui/downloads_dom_handler.cc |
+++ b/chrome/browser/ui/webui/downloads_dom_handler.cc |
@@ -358,7 +358,8 @@ void DownloadsDOMHandler::HandleDrag(const base::ListValue* args) { |
content::DownloadItem* file = GetDownloadByValue(args); |
content::WebContents* web_contents = GetWebUIWebContents(); |
// |web_contents| is only NULL in the test. |
- if (!file || !web_contents || !file->IsComplete()) |
+ if (!file || !web_contents || |
Bernhard Bauer
2013/06/13 19:07:23
It might be slightly more readable if you break th
|
+ (file->GetState() != content::DownloadItem::COMPLETE)) |
return; |
gfx::Image* icon = g_browser_process->icon_manager()->LookupIconFromFilepath( |
file->GetTargetFilePath(), IconLoader::NORMAL); |