Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Issue 2213193005: Make SSLErrorHandler UI-thread-only and not-refcounted (Closed)

Created:
4 years, 4 months ago by estark
Modified:
4 years, 4 months ago
Reviewers:
nasko
CC:
chromium-reviews, lcwu+watch_chromium.org, jam, darin-cc_chromium.org, halliwell+watch_chromium.org, alokp+watch_chromium.org, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make SSLErrorHandler UI-thread-only and not-refcounted This CL makes the SSLErrorHandler class UI-thread-only (instead of shared between UI and IO as it was previously) and not refcounted. When a decision about an error is made synchronously, the SSLErrorHandler is owned by SSLPolicy. When SSLPolicy calls out to the embedder to make an asynchronous decision about what to do with the error, the callback passed to the embedder takes ownership of the SSLErrorHandler. This CL is based on top of two cleanup CLs: 1. https://codereview.chromium.org/2220603003: Remove unnecessary |result| argument from AllowCertificateError() 2. https://codereview.chromium.org/2222003002: Combine SSLCertErrorHandler and SSLErrorHandler BUG=558491 Committed: https://crrev.com/dc874b5d1b42f7747fa7b75b8cc2f322f877d11a Cr-Commit-Position: refs/heads/master@{#410682}

Patch Set 1 : rebase #

Patch Set 2 : rebase on top of https://codereview.chromium.org/2222003002/ #

Total comments: 8

Patch Set 3 : rebase #

Patch Set 4 : nasko comments #

Patch Set 5 : remove UI-thread dereference for DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -257 lines) Patch
M content/browser/ssl/ssl_error_handler.h View 1 2 3 3 chunks +28 lines, -71 lines 0 comments Download
M content/browser/ssl/ssl_error_handler.cc View 1 2 3 4 2 chunks +35 lines, -135 lines 0 comments Download
M content/browser/ssl/ssl_manager.cc View 1 2 chunks +33 lines, -6 lines 0 comments Download
M content/browser/ssl/ssl_policy.h View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M content/browser/ssl/ssl_policy.cc View 1 2 3 4 chunks +44 lines, -39 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
estark
And this 3/3 of making SSLErrorHandler live on the UI thread only.
4 years, 4 months ago (2016-08-08 17:44:20 UTC) #5
nasko
I like! LGTM with a few nits. https://codereview.chromium.org/2213193005/diff/40001/content/browser/ssl/ssl_error_handler.h File content/browser/ssl/ssl_error_handler.h (right): https://codereview.chromium.org/2213193005/diff/40001/content/browser/ssl/ssl_error_handler.h#newcode98 content/browser/ssl/ssl_error_handler.h:98: // A ...
4 years, 4 months ago (2016-08-08 20:57:06 UTC) #6
estark
Thanks Nasko! https://codereview.chromium.org/2213193005/diff/40001/content/browser/ssl/ssl_error_handler.h File content/browser/ssl/ssl_error_handler.h (right): https://codereview.chromium.org/2213193005/diff/40001/content/browser/ssl/ssl_error_handler.h#newcode98 content/browser/ssl/ssl_error_handler.h:98: // A net error code describing the ...
4 years, 4 months ago (2016-08-09 05:35:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2213193005/80001
4 years, 4 months ago (2016-08-09 05:35:42 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/257457)
4 years, 4 months ago (2016-08-09 06:12:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2213193005/100001
4 years, 4 months ago (2016-08-09 15:36:35 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 4 months ago (2016-08-09 15:43:20 UTC) #21
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 15:49:41 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/dc874b5d1b42f7747fa7b75b8cc2f322f877d11a
Cr-Commit-Position: refs/heads/master@{#410682}

Powered by Google App Engine
This is Rietveld 408576698