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

Issue 596873002: Remove SSLClientAuthHandler's RDH dependency. (Closed)

Created:
6 years, 3 months ago by davidben
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove SSLClientAuthHandler's RDH dependency. Instead, give it a callback to select the client certificate. This removes a dependency on GlobalRequestID. Also stop reference-counting it and avoid passing an HttpNetworkSession to the UI thread. (Use BrowserContext instead.) BUG=376003 Committed: https://crrev.com/99aee5eb0f6733566c60dfe356a1b7169477808f Cr-Commit-Position: refs/heads/master@{#298782}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Un-refcount, fix cancel cases, remove HttpNetworkSession #

Total comments: 4

Patch Set 3 : fix tests #

Patch Set 4 : Further fix compile #

Total comments: 1

Patch Set 5 : Mac compile #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : mmenke comments, rebase (oof, sorry they're overlayed!) #

Patch Set 8 : rebase #

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

Messages

Total messages: 18 (3 generated)
davidben
mmenke: main review abarth: content/browser/ssl OWNERS
6 years, 3 months ago (2014-09-23 18:36:07 UTC) #2
mmenke
https://codereview.chromium.org/596873002/diff/1/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/596873002/diff/1/content/browser/loader/resource_loader.cc#newcode715 content/browser/loader/resource_loader.cc:715: ssl_client_auth_handler_ = NULL; Should we clear the auth handler ...
6 years, 3 months ago (2014-09-23 19:24:23 UTC) #3
davidben
Un-refcounted that class (the old logic was pretty messed up) and fixed a questionable HttpNetworkSession ...
6 years, 3 months ago (2014-09-23 21:22:03 UTC) #4
davidben
https://codereview.chromium.org/596873002/diff/60001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (left): https://codereview.chromium.org/596873002/diff/60001/chrome/browser/chrome_content_browser_client.cc#oldcode1735 chrome/browser/chrome_content_browser_client.cc:1735: NOTREACHED(); Removed this NOTREACHED because it's not NOTREACHED; a ...
6 years, 3 months ago (2014-09-23 22:57:24 UTC) #5
mmenke
https://codereview.chromium.org/596873002/diff/100001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/596873002/diff/100001/content/browser/loader/resource_loader.cc#newcode493 content/browser/loader/resource_loader.cc:493: ssl_client_auth_handler_.reset(); Does this get us anything? Suppose this CL ...
6 years, 3 months ago (2014-09-24 18:03:41 UTC) #6
davidben
https://codereview.chromium.org/596873002/diff/100001/content/browser/loader/resource_loader.cc File content/browser/loader/resource_loader.cc (right): https://codereview.chromium.org/596873002/diff/100001/content/browser/loader/resource_loader.cc#newcode493 content/browser/loader/resource_loader.cc:493: ssl_client_auth_handler_.reset(); On 2014/09/24 18:03:41, mmenke wrote: > Does this ...
6 years, 2 months ago (2014-09-26 18:49:49 UTC) #7
mmenke
LGTM! Sorry about latency.
6 years, 2 months ago (2014-10-01 14:02:03 UTC) #8
davidben
Okay, the owners coverage needed expanded dramatically. +jam for content/ and chrome/ and +benm for ...
6 years, 2 months ago (2014-10-01 21:36:20 UTC) #10
jam
lgtm
6 years, 2 months ago (2014-10-06 17:03:50 UTC) #11
davidben
benm: friendly ping
6 years, 2 months ago (2014-10-08 04:17:01 UTC) #12
benm (inactive)
On 2014/10/08 04:17:01, David Benjamin wrote: > benm: friendly ping lgtm % rebase. cheers!
6 years, 2 months ago (2014-10-08 17:19:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/596873002/140001
6 years, 2 months ago (2014-10-08 17:58:05 UTC) #15
commit-bot: I haz the power
Committed patchset #8 (id:140001) as 04fa9dd1e145d59b995ebd7016f2f2cac2d273f7
6 years, 2 months ago (2014-10-09 04:46:50 UTC) #16
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/99aee5eb0f6733566c60dfe356a1b7169477808f Cr-Commit-Position: refs/heads/master@{#298782}
6 years, 2 months ago (2014-10-09 04:47:34 UTC) #17
robliao
6 years ago (2014-11-26 17:51:38 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/766463002/ by robliao@chromium.org.

The reason for reverting is: Leak in SSLUITestWithClientCert.TestWSSClientCert

http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20...

First reported leak:
Indirect leak of 104 byte(s) in 1 object(s) allocated from:
    #0 0x57659b in operator new(unsigned long)
(/tmp/run_tha_test0QXqvt/out/Release/browser_tests+0x57659b)
    #1 0x2c7762d in ProfileIOData::ResourceContext::CreateClientCertStore()
chrome/browser/profiles/profile_io_data.cc:920:7
    #2 0x6c908bd in
content::ResourceLoader::OnCertificateRequested(net::URLRequest*,
net::SSLCertRequestInfo*) content/browser/loader/resource_loader.cc:298:7
    #3 0x3e3e15f in
net::URLRequest::NotifyCertificateRequested(net::SSLCertRequestInfo*)
net/url_request/url_request.cc:1109:5
    #4 0x405ea0d in net::URLRequestHttpJob::OnStartCompleted(int)
net/url_request/url_request_http_job.cc:925:5
    #5 0x3ccd86c in Run base/callback.h:396:12
    #6 0x3ccd86c in net::HttpCache::Transaction::DoCallback(int)
net/http/http_cache_transaction.cc:710
    #7 0x3cca160 in HandleResult net/http/http_cache_transaction.cc:716:5
    #8 0x3cca160 in net::HttpCache::Transaction::DoLoop(int)
net/http/http_cache_transaction.cc:977
    #9 0x3cc7a68 in net::HttpCache::Transaction::OnIOComplete(int)
net/http/http_cache_transaction.cc:2934:3
    #10 0xc78765a in Run base/callback.h:396:12
    #11 0xc78765a in DevToolsNetworkTransaction::OnCallback(int)
chrome/browser/devtools/devtools_network_transaction.cc:73
    #12 0x3ceab0c in Run base/callback.h:396:12
    #13 0x3ceab0c in DoCallback net/http/http_network_transaction.cc:577
    #14 0x3ceab0c in net::HttpNetworkTransaction::OnIOComplete(int)
net/http/http_network_transaction.cc:594
    #15 0x394b58f in Run base/callback.h:396:12
    #16 0x394b58f in base::debug::TaskAnnotator::RunTask(char const*, char
const*, base::PendingTask const&) base/debug/task_annotator.cc:63
    #17 0x388dd3c in base::MessageLoop::RunTask(base::PendingTask const&)
base/message_loop/message_loop.cc:448:3
    #18 0x388e49b in base::MessageLoop::DeferOrRunPendingTask(base::PendingTask
const&) base/message_loop/message_loop.cc:458:5
    #19 0x388ef57 in base::MessageLoop::DoWork()
base/message_loop/message_loop.cc:567:13
    #20 0x3932db7 in
base::MessagePumpLibevent::Run(base::MessagePump::Delegate*)
base/message_loop/message_pump_libevent.cc:232:21
    #21 0x38c0c1c in base::RunLoop::Run() base/run_loop.cc:55:3
    #22 0x388c843 in base::MessageLoop::Run()
base/message_loop/message_loop.cc:310:3
    #23 0x6af33c1 in content::BrowserThreadImpl::IOThreadRun(base::MessageLoop*)
content/browser/browser_thread_impl.cc:218:3
    #24 0x6af375e in content::BrowserThreadImpl::Run(base::MessageLoop*)
content/browser/browser_thread_impl.cc:253:14
    #25 0x390cec1 in base::Thread::ThreadMain() base/threading/thread.cc:228:5
    #26 0x3901e17 in base::(anonymous namespace)::ThreadFunc(void*)
base/threading/platform_thread_posix.cc:80:3
    #27 0x7f99b0016e99 in start_thread
/build/buildd/eglibc-2.15/nptl/pthread_create.c:308.

Powered by Google App Engine
This is Rietveld 408576698