From bc10be3de6b1a7f6d97e22b55636fb797829e267 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 23 May 2018 13:51:28 -0700 Subject: [PATCH] rename exposed session method to setCertificateVerifyProc --- atom/browser/api/atom_api_session.cc | 2 +- lib/browser/api/session.js | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/atom/browser/api/atom_api_session.cc b/atom/browser/api/atom_api_session.cc index 3668cc8663c6..c80973f439ac 100644 --- a/atom/browser/api/atom_api_session.cc +++ b/atom/browser/api/atom_api_session.cc @@ -821,7 +821,7 @@ void Session::BuildPrototype(v8::Isolate* isolate, .SetMethod("setDownloadPath", &Session::SetDownloadPath) .SetMethod("enableNetworkEmulation", &Session::EnableNetworkEmulation) .SetMethod("disableNetworkEmulation", &Session::DisableNetworkEmulation) - .SetMethod("_setCertificateVerifyProc", &Session::SetCertVerifyProc) + .SetMethod("setCertificateVerifyProc", &Session::SetCertVerifyProc) .SetMethod("setPermissionRequestHandler", &Session::SetPermissionRequestHandler) .SetMethod("clearHostResolverCache", &Session::ClearHostResolverCache) diff --git a/lib/browser/api/session.js b/lib/browser/api/session.js index 33e40dd84d0c..ac47244db326 100644 --- a/lib/browser/api/session.js +++ b/lib/browser/api/session.js @@ -20,7 +20,3 @@ Object.setPrototypeOf(Cookies.prototype, EventEmitter.prototype) Session.prototype._init = function () { app.emit('session-created', this) } - -Session.prototype.setCertificateVerifyProc = function (verifyProc) { - this._setCertificateVerifyProc(verifyProc) -}