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

Issue 773003004: Re-revert of "Remove SSLClientAuthHandler's RDH dependency." (https://codereview.chromium.org/59687… (Closed)

Created:
6 years ago by davidben
Modified:
6 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, nkostylev+watch_chromium.org, tfarina, jam, darin-cc_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, android-webview-reviews_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Re-revert of "Remove SSLClientAuthHandler's RDH dependency." (https://codereview.chromium.org/596873002) Reason for revert: Causes browser crash if URL request is cancelled during client cert loading. This is a reland of https://codereview.chromium.org/766463002/ which reverted https://codereview.chromium.org/596873002. The revert was reverted because it introduced a memory leak. The source of this memory leak was a reference cycle in chrome/browser/chromeos/net/client_cert_filter_chromeos.cc whose fix is included in this CL. If InitIfSlotsAvailable returns true (synchronously), the callback should not be retained. This was not a problem before as the code in question was introduced after https://codereview.chromium.org/596873002 which unrefcounted an object. After this is merged into M-40, https://codereview.chromium.org/596873002 should be reworked with the crash fixed as this reference cycle is too subtle and the object really needn't be reference-counted. TBR=mmenke@chromium.org,benm@chromium.org,jam@chromium.org BUG=422765, 427844, 376003 Committed: https://crrev.com/78fee7dab63602d70b5fe3f58ee114d2968187a6 Cr-Commit-Position: refs/heads/master@{#306649}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -130 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/net/client_cert_filter_chromeos.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ssl/ssl_client_auth_observer.h View 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ssl/ssl_client_auth_observer.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ssl/ssl_client_auth_requestor_mock.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_client_auth_requestor_mock.cc View 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/ssl/ssl_client_certificate_selector.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/ssl_client_certificate_request.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa.h View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa.mm View 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/ssl_client_certificate_selector_cocoa_browsertest.mm View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/ssl_client_certificate_selector_browsertest.cc View 3 chunks +4 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/loader/resource_loader.h View 4 chunks +2 lines, -6 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 5 chunks +13 lines, -12 lines 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/ssl/ssl_client_auth_handler.h View 1 chunk +40 lines, -18 lines 0 comments Download
M content/browser/ssl/ssl_client_auth_handler.cc View 2 chunks +60 lines, -51 lines 0 comments Download
M content/public/browser/content_browser_client.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/public/browser/content_browser_client.cc View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
davidben
chrome/browser/chromeos/net/client_cert_filter_chromeos.cc is the important change. The rest is mattm's original revert cherry-picked. mattm and pneubeck ...
6 years ago (2014-12-02 23:51:08 UTC) #2
mattm
On 2014/12/02 23:51:08, David Benjamin wrote: > chrome/browser/chromeos/net/client_cert_filter_chromeos.cc is the important > change. The rest ...
6 years ago (2014-12-03 00:02:59 UTC) #3
pneubeck (no reviews)
chrome/browser/chromeos/net/client_cert_filter_chromeos.cc lgtm
6 years ago (2014-12-03 10:44:12 UTC) #4
davidben
TBR'ing jam, benm, mmenke because they were the reviewers on the original original original CL. ...
6 years ago (2014-12-03 19:35:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/773003004/1
6 years ago (2014-12-03 19:37:54 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
6 years ago (2014-12-03 19:42:18 UTC) #9
commit-bot: I haz the power
6 years ago (2014-12-03 19:43:05 UTC) #10
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/78fee7dab63602d70b5fe3f58ee114d2968187a6
Cr-Commit-Position: refs/heads/master@{#306649}

Powered by Google App Engine
This is Rietveld 408576698