- // Checks to see if the protocol is allowed, if it is whitelisted,
- // the application associated with the protocol is launched on the io thread,
- // if it is blacklisted, returns silently. Otherwise, an
- // ExternalProtocolDialog is created asking the user. If the user accepts,
- // LaunchUrlWithoutSecurityCheck is called on the io thread and the
- // application is launched.
- // Must run on the UI thread.
- static void LaunchUrl(const GURL& url, int render_process_host_id,
- int tab_contents_id) {
- LaunchUrlWithDelegate(url, render_process_host_id, tab_contents_id, NULL);
- }
-