From f087fd4741d34509b7aa91bd7346aee781621078 Mon Sep 17 00:00:00 2001 From: yan Date: Tue, 17 Dec 2024 12:39:51 -0800 Subject: [PATCH] fix presubmit --- browser/ui/brave_browser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/ui/brave_browser.cc b/browser/ui/brave_browser.cc index c31880233053..7b178fb990ff 100644 --- a/browser/ui/brave_browser.cc +++ b/browser/ui/brave_browser.cc @@ -155,8 +155,8 @@ void BraveBrowser::RunFileChooser( CHECK(render_frame_host); const url::Origin& origin = render_frame_host->GetLastCommittedOrigin(); new_params->title = brave::GetFileSelectTitle( - content::WebContents::FromRenderFrameHost(render_frame_host), - origin, origin, + content::WebContents::FromRenderFrameHost(render_frame_host), origin, + origin, params.mode == blink::mojom::FileChooserParams::Mode::kSave ? brave::FileSelectTitleType::kSave : brave::FileSelectTitleType::kOpen);