Remove the intermediate function

This commit is contained in:
joshaber 2017-04-03 21:22:37 -04:00
parent b3e865a478
commit 2badfbe04f

View file

@ -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
}