refactor: make shell.OpenExternal async (#17135)
This commit is contained in:
parent
0755857a0c
commit
6d96f30ed3
16 changed files with 70 additions and 140 deletions
|
@ -794,14 +794,10 @@ void AtomBrowserClient::RenderProcessExited(
|
|||
}
|
||||
|
||||
void OnOpenExternal(const GURL& escaped_url, bool allowed) {
|
||||
if (allowed)
|
||||
if (allowed) {
|
||||
platform_util::OpenExternal(
|
||||
#if defined(OS_WIN)
|
||||
base::UTF8ToUTF16(escaped_url.spec()),
|
||||
#else
|
||||
escaped_url,
|
||||
#endif
|
||||
platform_util::OpenExternalOptions());
|
||||
escaped_url, platform_util::OpenExternalOptions(), base::DoNothing());
|
||||
}
|
||||
}
|
||||
|
||||
void HandleExternalProtocolInUI(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue