fix: reverse dialog cancel bool for openDialog (#18492)

This commit is contained in:
Shelley Vohr 2019-05-29 12:37:58 -07:00 committed by Samuel Attard
parent f5b3d00b47
commit 3d8db573d9

View file

@ -97,7 +97,7 @@ void RunOpenDialogInNewThread(const RunState& run_state,
bool result = ShowOpenDialogSync(settings, &paths); bool result = ShowOpenDialogSync(settings, &paths);
run_state.ui_task_runner->PostTask( run_state.ui_task_runner->PostTask(
FROM_HERE, FROM_HERE,
base::BindOnce(&OnDialogOpened, std::move(promise), result, paths)); base::BindOnce(&OnDialogOpened, std::move(promise), !result, paths));
run_state.ui_task_runner->DeleteSoon(FROM_HERE, run_state.dialog_thread); run_state.ui_task_runner->DeleteSoon(FROM_HERE, run_state.dialog_thread);
} }