set mac protocol to none (#13302)
This commit is contained in:
parent
951aa83bdf
commit
1a8c986fb1
1 changed files with 5 additions and 0 deletions
|
@ -78,6 +78,11 @@ bool Browser::RemoveAsDefaultProtocolClient(const std::string& protocol,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// No other app was found set it to none instead of setting it back to itself.
|
||||||
|
if ([identifier isEqualToString:(__bridge NSString*)other]) {
|
||||||
|
other = base::mac::NSToCFCast(@"None");
|
||||||
|
}
|
||||||
|
|
||||||
OSStatus return_code = LSSetDefaultHandlerForURLScheme(protocol_cf, other);
|
OSStatus return_code = LSSetDefaultHandlerForURLScheme(protocol_cf, other);
|
||||||
return return_code == noErr;
|
return return_code == noErr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue