Remove the intermediate function
This commit is contained in:
parent
b3e865a478
commit
2badfbe04f
1 changed files with 1 additions and 12 deletions
|
@ -121,17 +121,6 @@ void ShowSaveDialog(const file_dialog::DialogSettings& settings,
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
void ShowCertificateTrust(atom::NativeWindow* parent_window,
|
||||
const scoped_refptr<net::X509Certificate>& cert,
|
||||
std::string message,
|
||||
const certificate_trust::ShowTrustCallback& callback,
|
||||
mate::Arguments* args) {
|
||||
certificate_trust::ShowCertificateTrust(parent_window, cert,
|
||||
message, callback);
|
||||
}
|
||||
#endif
|
||||
|
||||
void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
|
||||
v8::Local<v8::Context> context, void* priv) {
|
||||
mate::Dictionary dict(context->GetIsolate(), exports);
|
||||
|
@ -140,7 +129,7 @@ void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
|
|||
dict.SetMethod("showOpenDialog", &ShowOpenDialog);
|
||||
dict.SetMethod("showSaveDialog", &ShowSaveDialog);
|
||||
#if defined(OS_MACOSX)
|
||||
dict.SetMethod("showCertificateTrustDialog", &ShowCertificateTrust);
|
||||
dict.SetMethod("showCertificateTrustDialog", &certificate_trust::ShowCertificateTrust);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue