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

Issue 1403863002: Enable exporting SSLKEYLOGFILE on Android w/ command line arguments (Closed)

Created:
5 years, 2 months ago by Zhongyi Shi
Modified:
5 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable exporting SSLKEYLOGFILE on Android w/ command line arguments This moves handling of the SSLKEYLOGFILE environment variable from //net to //chrome, and enables a command-line flag to support Android builds. This has the side-effect of disabling the SSLKEYLOGFILE support for //content-embedders, which must now use SSLClientSocket::SetSSLKeyLogFile Note that SSLClientSocket::SetSSLKeyLogFile is a temporary solution until the SSLClientSocket can have its global context broken up; in an ideal world, this would be a parameter off the HttpNetworkSession::Params, and embedders should ideally handle this environment variable similar to such params. BUG=535184 Committed: https://crrev.com/81f85c6d903cd698fafbf1fbfe4e6dc101536070 Cr-Commit-Position: refs/heads/master@{#354562}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Avoid setting env variable, use static method #

Patch Set 3 : linker support for android #

Patch Set 4 : openssl envrironment #

Total comments: 7

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : fix windows #

Patch Set 8 : handle env in io_thread #

Total comments: 9

Patch Set 9 : #

Total comments: 11

Patch Set 10 : wrapping up #

Total comments: 10

Patch Set 11 : #

Total comments: 2

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -15 lines) Patch
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +27 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_openssl.cc View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -15 lines 0 comments Download

Messages

Total messages: 48 (13 generated)
Zhongyi Shi
Hi guys, This CL tried to set env variable with cmd line args to export ...
5 years, 2 months ago (2015-10-13 01:22:15 UTC) #2
Bryan McQuade
https://codereview.chromium.org/1403863002/diff/1/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1403863002/diff/1/chrome/browser/io_thread.cc#newcode562 chrome/browser/io_thread.cc:562: env->SetVar("SSLKEYLOGFILE", switch_value); Thanks for putting this patch together! I ...
5 years, 2 months ago (2015-10-13 14:33:36 UTC) #4
davidben
https://codereview.chromium.org/1403863002/diff/1/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1403863002/diff/1/chrome/browser/io_thread.cc#newcode562 chrome/browser/io_thread.cc:562: env->SetVar("SSLKEYLOGFILE", switch_value); On 2015/10/13 14:33:36, Bryan McQuade wrote: > ...
5 years, 2 months ago (2015-10-13 16:07:39 UTC) #5
Bryan McQuade
Just a couple additional comments. Looks very good overall. https://codereview.chromium.org/1403863002/diff/60001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1403863002/diff/60001/chrome/browser/io_thread.cc#newcode560 chrome/browser/io_thread.cc:560: ...
5 years, 2 months ago (2015-10-14 00:38:54 UTC) #6
Zhongyi Shi
On 2015/10/14 00:38:54, Bryan McQuade wrote: > Just a couple additional comments. Looks very good ...
5 years, 2 months ago (2015-10-14 04:42:06 UTC) #7
Zhongyi Shi
So I tested the code on Linux environment, and it works with the command line ...
5 years, 2 months ago (2015-10-15 00:26:52 UTC) #9
Bryan McQuade
Thanks! This basically looks good to me with these comments addressed, though davidben is the ...
5 years, 2 months ago (2015-10-15 01:05:26 UTC) #10
Zhongyi Shi
https://codereview.chromium.org/1403863002/diff/160001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1403863002/diff/160001/chrome/browser/io_thread.cc#newcode566 chrome/browser/io_thread.cc:566: if (env->GetVar("SSLKEYLOGFILE", &env_keylog_file) && On 2015/10/15 01:05:26, Bryan McQuade ...
5 years, 2 months ago (2015-10-15 02:02:04 UTC) #11
Bryan McQuade
lgtm. thanks! https://codereview.chromium.org/1403863002/diff/180001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1403863002/diff/180001/chrome/browser/io_thread.cc#newcode576 chrome/browser/io_thread.cc:576: const std::string ssl_keylog_file = if possible, this ...
5 years, 2 months ago (2015-10-15 02:09:47 UTC) #12
Zhongyi Shi
On 2015/10/15 02:09:47, Bryan McQuade wrote: > lgtm. thanks! > > https://codereview.chromium.org/1403863002/diff/180001/chrome/browser/io_thread.cc > File chrome/browser/io_thread.cc ...
5 years, 2 months ago (2015-10-15 02:15:16 UTC) #13
davidben
Thanks! Just minor nits. Hopefully I can find the time soon to smash SSLClientSocket::SSLContext to ...
5 years, 2 months ago (2015-10-15 16:46:00 UTC) #14
Zhongyi Shi
https://codereview.chromium.org/1403863002/diff/180001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1403863002/diff/180001/chrome/browser/io_thread.cc#newcode557 chrome/browser/io_thread.cc:557: On 2015/10/15 16:46:00, David Benjamin wrote: > Optional: I ...
5 years, 2 months ago (2015-10-15 19:03:06 UTC) #15
davidben
One last set of style nits. :-) https://codereview.chromium.org/1403863002/diff/200001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1403863002/diff/200001/chrome/browser/io_thread.cc#newcode538 chrome/browser/io_thread.cc:538: void IOThread::GetSSLKeyLogFile(const ...
5 years, 2 months ago (2015-10-15 19:08:23 UTC) #16
Bryan McQuade
https://codereview.chromium.org/1403863002/diff/200001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1403863002/diff/200001/chrome/browser/io_thread.cc#newcode538 chrome/browser/io_thread.cc:538: void IOThread::GetSSLKeyLogFile(const base::CommandLine& command_line, if this method doesn't depend ...
5 years, 2 months ago (2015-10-15 19:11:13 UTC) #17
Zhongyi Shi
https://codereview.chromium.org/1403863002/diff/200001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1403863002/diff/200001/chrome/browser/io_thread.cc#newcode538 chrome/browser/io_thread.cc:538: void IOThread::GetSSLKeyLogFile(const base::CommandLine& command_line, On 2015/10/15 19:11:12, Bryan McQuade ...
5 years, 2 months ago (2015-10-15 19:47:57 UTC) #20
davidben
Oh no, I forgot! This will... Nah, lgtm. :-) Thanks!
5 years, 2 months ago (2015-10-15 19:52:35 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403863002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403863002/260001
5 years, 2 months ago (2015-10-15 22:45:32 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/109883)
5 years, 2 months ago (2015-10-15 22:55:19 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403863002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403863002/260001
5 years, 2 months ago (2015-10-16 00:49:36 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/109927)
5 years, 2 months ago (2015-10-16 00:59:03 UTC) #30
Zhongyi Shi
On 2015/10/16 00:59:03, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 2 months ago (2015-10-16 02:07:24 UTC) #31
Ryan Hamilton
It'd be nice if there were a unit test for this, but that would be ...
5 years, 2 months ago (2015-10-16 02:37:30 UTC) #32
Zhongyi Shi
On 2015/10/16 02:37:30, Ryan Hamilton wrote: > It'd be nice if there were a unit ...
5 years, 2 months ago (2015-10-16 16:31:43 UTC) #33
Ryan Sleevi
This is a late drive by, but is there a reason this is in chrome_switches ...
5 years, 2 months ago (2015-10-16 16:34:28 UTC) #35
davidben
On 2015/10/16 16:34:28, Ryan Sleevi (OOO) wrote: > This is a late drive by, but ...
5 years, 2 months ago (2015-10-16 16:37:44 UTC) #36
Ryan Sleevi
On 2015/10/16 16:37:44, David Benjamin wrote: > Actually, once we fix SSLClientSocketOpenSSL, this'll be an ...
5 years, 2 months ago (2015-10-16 16:45:31 UTC) #37
davidben
On 2015/10/16 16:45:31, Ryan Sleevi (OOO) wrote: > On 2015/10/16 16:37:44, David Benjamin wrote: > ...
5 years, 2 months ago (2015-10-16 16:50:48 UTC) #38
davidben
On 2015/10/16 16:50:48, David Benjamin wrote: > On 2015/10/16 16:45:31, Ryan Sleevi (OOO) wrote: > ...
5 years, 2 months ago (2015-10-16 16:54:50 UTC) #39
Zhongyi Shi
https://codereview.chromium.org/1403863002/diff/260001/chrome/browser/io_thread.cc File chrome/browser/io_thread.cc (right): https://codereview.chromium.org/1403863002/diff/260001/chrome/browser/io_thread.cc#newcode181 chrome/browser/io_thread.cc:181: } On 2015/10/16 02:37:30, Ryan Hamilton wrote: > Nit: ...
5 years, 2 months ago (2015-10-16 17:36:04 UTC) #40
Ryan Hamilton
chrome/browser/io_thread.{h,cc} LGTM I've not reviewed the rest of the code but others have.
5 years, 2 months ago (2015-10-16 17:45:48 UTC) #41
Ryan Sleevi
I reworded the description here to better reflect the discussion on this CL, as well ...
5 years, 2 months ago (2015-10-16 18:26:03 UTC) #42
Zhongyi Shi
On 2015/10/16 18:26:03, Ryan Sleevi (OOO) wrote: > I reworded the description here to better ...
5 years, 2 months ago (2015-10-16 18:36:29 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403863002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403863002/280001
5 years, 2 months ago (2015-10-16 19:22:11 UTC) #46
commit-bot: I haz the power
Committed patchset #12 (id:280001)
5 years, 2 months ago (2015-10-16 19:34:22 UTC) #47
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 19:35:04 UTC) #48
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/81f85c6d903cd698fafbf1fbfe4e6dc101536070
Cr-Commit-Position: refs/heads/master@{#354562}

Powered by Google App Engine
This is Rietveld 408576698