Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7865fe38 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 9514

* changes:
  fix the build. handleSslErrorRequest needs a return value now.
parents f734abe9 699c6468
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -497,7 +497,7 @@ public class TestEventHandler implements EventHandler {
     * SSL certificate error callback. Handles SSL error(s) on the way
     * SSL certificate error callback. Handles SSL error(s) on the way
     * up to the user.
     * up to the user.
     */
     */
    public void handleSslErrorRequest(SslError error) {
    public boolean handleSslErrorRequest(SslError error) {
      int primaryError = error.getPrimaryError();
      int primaryError = error.getPrimaryError();


      if (Config.LOGV) {
      if (Config.LOGV) {
@@ -527,6 +527,9 @@ public class TestEventHandler implements EventHandler {


      if (expectSslErrors == -1) // && expectSslCertificate == certificate?
      if (expectSslErrors == -1) // && expectSslCertificate == certificate?
        expects[TEST_SSL_CERTIFICATE_ERROR] = false;
        expects[TEST_SSL_CERTIFICATE_ERROR] = false;

      // return false so that we won't block the thread
      return false;
    }
    }


    /**
    /**