return XDGOpen(full_path.value(), true);
}
-bool openExternal(const GURL& url, bool activate) {
+bool OpenExternal(const GURL& url, bool activate) {
// Don't wait for exit, since we don't want to wait for the browser/email
// client window to close before returning
if (url.SchemeIs("mailto"))
return XDGOpen(url.spec(), false);
}
-bool OpenExternal(const GURL& url, bool activate) {
- return openExternal(url, activate);
-}
-
bool OpenExternal(const GURL& url, bool activate, const OpenExternalCallback& callback) {
// TODO: Implement async open if callback is specified
- bool opened = openExternal(url, activate);
+ bool opened = OpenExternal(url, activate);
callback.Run(opened);
return opened;
}
return ui::win::OpenFileViaShell(full_path);
}
-bool openExternal(const base::string16& url, bool activate) {
+bool OpenExternal(const base::string16& url, bool activate) {
// Quote the input scheme to be sure that the command does not have
// parameters unexpected by the external program. This url should already
// have been escaped.
return true;
}
-bool OpenExternal(const base::string16& url, bool activate) {
- return openExternal(url, activate);
-}
-
bool OpenExternal(const base::string16& url, bool activate, const OpenExternalCallback& callback) {
// TODO: Implement async open if callback is specified
- bool opened = openExternal(url, activate);
+ bool opened = OpenExternal(url, activate);
callback.Run(opened);
return opened;
}