Browse Source

rename exposed session method to setCertificateVerifyProc

Shelley Vohr 7 years ago
parent
commit
bc10be3de6
2 changed files with 1 additions and 5 deletions
  1. 1 1
      atom/browser/api/atom_api_session.cc
  2. 0 4
      lib/browser/api/session.js

+ 1 - 1
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)

+ 0 - 4
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)
-}