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

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

Issue 211383007: Use FilePaths in content::DropData to avoid redundant conversions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang-format 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
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..2fced53c23b445ca21cb82a858d5346e4a73e6ec 100644
--- a/chrome/browser/download/drag_download_item_views.cc
+++ b/chrome/browser/download/drag_download_item_views.cc
@@ -12,6 +12,7 @@
#include "net/base/net_util.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/dragdrop/drag_utils.h"
+#include "ui/base/dragdrop/file_info.h"
#include "ui/base/dragdrop/os_exchange_data.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_skia.h"
@@ -54,9 +55,9 @@ void DragDownloadItem(const content::DownloadItem* download,
drive_download_handler->IsDriveDownload(download))
full_path = drive_download_handler->GetCacheFilePath(download);
#endif
- std::vector<ui::OSExchangeData::FileInfo> file_infos;
- file_infos.push_back(ui::OSExchangeData::FileInfo(
- full_path, download->GetFileNameToReportUser()));
+ std::vector<ui::FileInfo> file_infos;
+ file_infos.push_back(
+ ui::FileInfo(full_path, download->GetFileNameToReportUser()));
data.SetFilenames(file_infos);
// Add URL so that we can load supported files when dragged to WebContents.

Powered by Google App Engine
This is Rietveld 408576698