Skip to content

Commit

Permalink
Merge pull request #14734 from brave/closing_confirm_dialog_private_w…
Browse files Browse the repository at this point in the history
…indow

Fixed don't ask check of private window's closing confirm dialog doesn't work
  • Loading branch information
simonhong authored Aug 23, 2022
2 parents f139154 + acf659c commit 86b1feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/ui/views/window_closing_confirm_dialog_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ WindowClosingConfirmDialogView::WindowClosingConfirmDialogView(
base::OnceCallback<void(bool)> 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(
Expand Down

0 comments on commit 86b1feb

Please sign in to comment.