Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 18b574a

Browse files
committed
[WIN] fix download dialog
1 parent 924298d commit 18b574a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/browser/shell_download_manager_delegate_win.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
#include "content/public/browser/web_contents_view.h"
3838
#include "net/base/net_util.h"
3939

40+
#include "ui/aura/window.h"
41+
#include "ui/aura/window_tree_host.h"
42+
4043
namespace content {
4144

4245
void ShellDownloadManagerDelegate::ChooseDownloadPath(
@@ -56,7 +59,8 @@ void ShellDownloadManagerDelegate::ChooseDownloadPath(
5659
OPENFILENAME save_as;
5760
ZeroMemory(&save_as, sizeof(save_as));
5861
save_as.lStructSize = sizeof(OPENFILENAME);
59-
save_as.hwndOwner = (HWND)item->GetWebContents()->GetView()->GetNativeView();
62+
save_as.hwndOwner = (HWND)item->GetWebContents()->GetView()->GetNativeView()->
63+
GetHost()->GetAcceleratedWidget();
6064
save_as.lpstrFile = file_name;
6165
save_as.nMaxFile = arraysize(file_name);
6266

0 commit comments

Comments
 (0)