| Index: chrome/browser/views/tab_contents/tab_contents_drag_win.cc
|
| diff --git a/chrome/browser/views/tab_contents/tab_contents_drag_win.cc b/chrome/browser/views/tab_contents/tab_contents_drag_win.cc
|
| index c2050e5b2a3f14edf37809d41bc87e6eecad9789..cb745dadce33ef9e73710949e7baa7e9775037ab 100644
|
| --- a/chrome/browser/views/tab_contents/tab_contents_drag_win.cc
|
| +++ b/chrome/browser/views/tab_contents/tab_contents_drag_win.cc
|
| @@ -16,6 +16,7 @@
|
| #include "base/win_util.h"
|
| #include "chrome/browser/bookmarks/bookmark_drag_data.h"
|
| #include "chrome/browser/chrome_thread.h"
|
| +#include "chrome/browser/download/download_util.h"
|
| #include "chrome/browser/download/drag_download_file.h"
|
| #include "chrome/browser/download/drag_download_util.h"
|
| #include "chrome/browser/profile.h"
|
| @@ -199,11 +200,11 @@ void TabContentsDragWin::PrepareDragForDownload(
|
| std::string content_disposition =
|
| "attachment; filename=" + UTF16ToUTF8(file_name.value());
|
| FilePath generated_file_name;
|
| - DownloadManager::GenerateFileName(download_url,
|
| - content_disposition,
|
| - std::string(),
|
| - UTF16ToUTF8(mime_type),
|
| - &generated_file_name);
|
| + download_util::GenerateFileName(download_url,
|
| + content_disposition,
|
| + std::string(),
|
| + UTF16ToUTF8(mime_type),
|
| + &generated_file_name);
|
|
|
| // Provide the data as file (CF_HDROP). A temporary download file with the
|
| // Zone.Identifier ADS (Alternate Data Stream) attached will be created.
|
|
|