Don't pass the result through
It's meaningless on macOS, at least.
This commit is contained in:
parent
0cab8a3322
commit
146e1ed3ce
3 changed files with 6 additions and 9 deletions
|
@ -66,14 +66,12 @@
|
|||
- (void)panelDidEnd:(NSWindow*)sheet
|
||||
returnCode:(int)returnCode
|
||||
contextInfo:(void*)contextInfo {
|
||||
if (returnCode == NSFileHandlingPanelOKButton) {
|
||||
auto cert_db = net::CertDatabase::GetInstance();
|
||||
// This forces Chromium to reload the certificate since it might be trusted
|
||||
// now.
|
||||
cert_db->NotifyObserversCertDBChanged(cert_.get());
|
||||
}
|
||||
auto cert_db = net::CertDatabase::GetInstance();
|
||||
// This forces Chromium to reload the certificate since it might be trusted
|
||||
// now.
|
||||
cert_db->NotifyObserversCertDBChanged(cert_.get());
|
||||
|
||||
callback_.Run(returnCode == NSFileHandlingPanelOKButton ? true : false);
|
||||
callback_.Run();
|
||||
|
||||
[self autorelease];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue