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 e0dfc553315df6b3703ea901cf0e5a5ddd28ef48..e35644b21f77bab1fc6ea1957297ef66ad2fd44f 100644 |
--- a/chrome/browser/ui/webui/downloads_dom_handler.cc |
+++ b/chrome/browser/ui/webui/downloads_dom_handler.cc |
@@ -338,10 +338,10 @@ 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) |
+ if (!file || !web_contents || !file->IsComplete()) |
return; |
gfx::Image* icon = g_browser_process->icon_manager()->LookupIcon( |
- file->GetUserVerifiedFilePath(), IconLoader::NORMAL); |
+ file->GetTargetFilePath(), IconLoader::NORMAL); |
gfx::NativeView view = web_contents->GetNativeView(); |
{ |
// Enable nested tasks during DnD, while |DragDownload()| blocks. |