Skip to content

Commit

Permalink
wip: async
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Jul 24, 2019
1 parent d5fbbec commit 4fbbc47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shell/browser/browser_win.cc
Expand Up @@ -412,8 +412,10 @@ void Browser::ShowAboutPanel() {
settings.icon = image;
settings.type = electron::MessageBoxType::kInformation;
// TODO(erickzhao): make asynchronous to avoid blocking js code
// TODO(erickzhao): add icon (?)
electron::ShowMessageBoxSync(settings);
electron::ShowMessageBox(
settings, base::BindOnce([](int code, bool checkbox_checked) -> void {
LOG(INFO) << "callback";
}));
}

void Browser::SetAboutPanelOptions(const base::DictionaryValue& options) {
Expand Down

0 comments on commit 4fbbc47

Please sign in to comment.