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

Unified Diff: chrome/browser/download/drag_download_item_views.cc

Issue 217243003: Remove superfluous call to SetURL in DragDownloadItem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/drag_download_item_views.cc
diff --git a/chrome/browser/download/drag_download_item_views.cc b/chrome/browser/download/drag_download_item_views.cc
index 5cad8405adfd15b7d8865d0863f134218aa94cc8..07ae6863dca08b883e86d034af5e79f1b5c6d817 100644
--- a/chrome/browser/download/drag_download_item_views.cc
+++ b/chrome/browser/download/drag_download_item_views.cc
@@ -59,10 +59,6 @@ void DragDownloadItem(const content::DownloadItem* download,
full_path, download->GetFileNameToReportUser()));
data.SetFilenames(file_infos);
- // Add URL so that we can load supported files when dragged to WebContents.
- data.SetURL(net::FilePathToFileURL(full_path),
- download->GetFileNameToReportUser().LossyDisplayName());
-
#if !defined(TOOLKIT_GTK)
#if defined(USE_AURA)
aura::Window* root_window = view->GetRootWindow();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698