Implement ShowMessageBox with TaskDialog

This commit is contained in:
Cheng Zhao 2015-07-08 14:12:11 +08:00
parent d01c200345
commit 1146441c2a
2 changed files with 78 additions and 332 deletions

View file

@ -120,12 +120,13 @@ struct RunState {
};
bool CreateDialogThread(RunState* run_state) {
base::Thread* thread = new base::Thread(ATOM_PRODUCT_NAME "FileDialogThread");
scoped_ptr<base::Thread> thread(
new base::Thread(ATOM_PRODUCT_NAME "FileDialogThread"));
thread->init_com_with_mta(false);
if (!thread->Start())
return false;
run_state->dialog_thread = thread;
run_state->dialog_thread = thread.release();
run_state->ui_message_loop = base::MessageLoop::current();
return true;
}