Fix ternary

This commit is contained in:
Gabriel Handford 2016-11-02 16:22:20 -07:00 committed by Cheng Zhao
parent 99a5258999
commit 31123f908d

View file

@ -202,8 +202,7 @@ bool OpenExternal(const GURL& url, bool activate) {
if (!ns_url) {
return false;
}
NSError *error = OpenURL(ns_url, activate);
return error ? false : true;
return !OpenURL(ns_url, activate);
}
void OpenExternal(const GURL& url, bool activate, const OpenExternalCallback& c) {