Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 924298d commit 18b574aCopy full SHA for 18b574a
1 file changed
src/browser/shell_download_manager_delegate_win.cc
@@ -37,6 +37,9 @@
37
#include "content/public/browser/web_contents_view.h"
38
#include "net/base/net_util.h"
39
40
+#include "ui/aura/window.h"
41
+#include "ui/aura/window_tree_host.h"
42
+
43
namespace content {
44
45
void ShellDownloadManagerDelegate::ChooseDownloadPath(
@@ -56,7 +59,8 @@ void ShellDownloadManagerDelegate::ChooseDownloadPath(
56
59
OPENFILENAME save_as;
57
60
ZeroMemory(&save_as, sizeof(save_as));
58
61
save_as.lStructSize = sizeof(OPENFILENAME);
- save_as.hwndOwner = (HWND)item->GetWebContents()->GetView()->GetNativeView();
62
+ save_as.hwndOwner = (HWND)item->GetWebContents()->GetView()->GetNativeView()->
63
+ GetHost()->GetAcceleratedWidget();
64
save_as.lpstrFile = file_name;
65
save_as.nMaxFile = arraysize(file_name);
66
0 commit comments