We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9a1fe2 commit 40486d8Copy full SHA for 40486d8
src/browser/file_select_helper.cc
@@ -398,8 +398,13 @@ void FileSelectHelper::RunFileChooserOnUIThread(
398
FilePath default_file_name = params.default_file_name;
399
FilePath working_path = params.initial_path;
400
401
+#if defined(OS_WIN)
402
gfx::NativeWindow owning_window =
403
(gfx::NativeWindow)::GetAncestor((HWND)render_view_host_->GetView()->GetNativeView(), GA_ROOT);
404
+#else
405
+ gfx::NativeWindow owning_window =
406
+ platform_util::GetTopLevel(render_view_host_->GetView()->GetNativeView());
407
+#endif
408
409
select_file_dialog_->SelectFile(
410
dialog_type_,
0 commit comments