Use unique_ptr for passing VerifyRequestParams

This commit is contained in:
Kevin Sawicki 2017-02-08 10:34:07 -08:00
parent 70178adb6e
commit 1e581d6814
3 changed files with 19 additions and 12 deletions

View file

@ -205,9 +205,9 @@ struct Converter<net::ProxyConfig> {
};
template<>
struct Converter<atom::VerifyRequest> {
struct Converter<atom::VerifyRequestParams> {
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
atom::VerifyRequest val) {
atom::VerifyRequestParams val) {
mate::Dictionary dict = mate::Dictionary::CreateEmpty(isolate);
dict.Set("hostname", val.hostname);
dict.Set("certificate", val.certificate);