diff --git a/browser/ui/views/window_closing_confirm_dialog_view.cc b/browser/ui/views/window_closing_confirm_dialog_view.cc index 3b14969d87cf..a22a21f14067 100644 --- a/browser/ui/views/window_closing_confirm_dialog_view.cc +++ b/browser/ui/views/window_closing_confirm_dialog_view.cc @@ -103,7 +103,7 @@ WindowClosingConfirmDialogView::WindowClosingConfirmDialogView( base::OnceCallback response_callback) : browser_(browser), response_callback_(std::move(response_callback)), - prefs_(browser->profile()->GetPrefs()) { + prefs_(browser->profile()->GetOriginalProfile()->GetPrefs()) { set_should_ignore_snapping(true); SetButtonLabel(ui::DIALOG_BUTTON_OK, l10n_util::GetStringUTF16(