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

Issue 10580038: Allow OpenSSLPrivateKeyStore and Android global app context leaking. (Closed)

Created:
8 years, 6 months ago by Johnny(Jianning) Ding
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cbentzel+watch_chromium.org, jam, jochen+watch-content_chromium.org, Philippe
Visibility:
Public.

Description

Chromium's key generation is running on a non-joinable worker thread, which requirs us to use leakable Singleton/LazyInstance object since. See crbug.com/134118 for details BUG=134118 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157083

Patch Set 1 #

Patch Set 2 : #

Total comments: 14

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -13 lines) Patch
M base/android/jni_android.cc View 1 2 3 4 chunks +12 lines, -11 lines 0 comments Download
M net/base/openssl_private_key_store_android.cc View 1 2 3 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
Johnny(Jianning) Ding
8 years, 6 months ago (2012-06-20 13:01:29 UTC) #1
digit1
On 2012/06/20 13:01:29, Johnny(Jianning) Ding wrote: Quick question, what about using a leaky LazyInstance<> instead? ...
8 years, 6 months ago (2012-06-20 15:18:36 UTC) #2
joth
On 20 June 2012 06:01, <jnd@chromium.org> wrote: > Reviewers: wtc, joth, > > Description: > ...
8 years, 6 months ago (2012-06-20 16:11:32 UTC) #3
joth
Yes Looks like leaky instance/singleton could work in this case, as OpenSSLKeyStoreAndroid has no state ...
8 years, 6 months ago (2012-06-20 16:14:46 UTC) #4
wtc
rsleevi: please take a look at this CL. jnd: I also think that using a ...
8 years, 6 months ago (2012-06-20 18:37:25 UTC) #5
Ryan Sleevi
On 2012/06/20 18:37:25, wtc wrote: > rsleevi: please take a look at this CL. > ...
8 years, 6 months ago (2012-06-20 18:47:33 UTC) #6
Johnny(Jianning) Ding
File new bug 134118 for this issue. According to my investigation, using LazyInstance::Leak will introduce ...
8 years, 6 months ago (2012-06-22 12:59:13 UTC) #7
joth
Another option might be to continue to close the global context on shutdown, but code ...
8 years, 6 months ago (2012-06-22 15:54:28 UTC) #8
Ryan Sleevi
On 2012/06/22 12:59:13, Johnny(Jianning) Ding wrote: > File new bug 134118 for this issue. > ...
8 years, 6 months ago (2012-06-22 16:51:30 UTC) #9
wtc
jnd: what's the status of this CL? If you have abandoned this approach, could you ...
8 years, 4 months ago (2012-08-01 17:46:07 UTC) #10
Johnny(Jianning) Ding
On 2012/08/01 17:46:07, wtc wrote: > jnd: what's the status of this CL? If you ...
8 years, 4 months ago (2012-08-01 18:02:07 UTC) #11
joth
On 1 August 2012 11:02, <jnd@chromium.org> wrote: > On 2012/08/01 17:46:07, wtc wrote: > >> ...
8 years, 4 months ago (2012-08-01 18:26:04 UTC) #12
Johnny(Jianning) Ding
Thanks for the detailed answers. I will complete this CL asap. On 2012/08/01 18:26:04, joth ...
8 years, 4 months ago (2012-08-01 18:36:04 UTC) #13
Johnny(Jianning) Ding
Tested on Chrome Android DEBUG version, no crash caused by base::ThreadRestrictions::AssertSingletonAllowed() On 2012/08/01 18:36:04, Johnny(Jianning) ...
8 years, 3 months ago (2012-09-05 14:10:57 UTC) #14
Ryan Sleevi
http://codereview.chromium.org/10580038/diff/16001/base/android/jni_android.cc File base/android/jni_android.cc (right): http://codereview.chromium.org/10580038/diff/16001/base/android/jni_android.cc#newcode25 base/android/jni_android.cc:25: // to leak it. style nit: Don't use "We" ...
8 years, 3 months ago (2012-09-05 17:28:59 UTC) #15
Johnny(Jianning) Ding
http://codereview.chromium.org/10580038/diff/16001/base/android/jni_android.cc File base/android/jni_android.cc (right): http://codereview.chromium.org/10580038/diff/16001/base/android/jni_android.cc#newcode25 base/android/jni_android.cc:25: // to leak it. On 2012/09/05 17:29:00, Ryan Sleevi ...
8 years, 3 months ago (2012-09-06 10:34:44 UTC) #16
Ryan Sleevi
LGTM with a few nits, but no need for re-review. http://codereview.chromium.org/10580038/diff/23001/base/android/jni_android.cc File base/android/jni_android.cc (right): http://codereview.chromium.org/10580038/diff/23001/base/android/jni_android.cc#newcode55 ...
8 years, 3 months ago (2012-09-06 18:23:35 UTC) #17
Johnny(Jianning) Ding
http://codereview.chromium.org/10580038/diff/23001/base/android/jni_android.cc File base/android/jni_android.cc (right): http://codereview.chromium.org/10580038/diff/23001/base/android/jni_android.cc#newcode55 base/android/jni_android.cc:55: base::LazyInstance<MethodIDMap> g_method_id_map = LAZY_INSTANCE_INITIALIZER; On 2012/09/06 18:23:35, Ryan Sleevi ...
8 years, 3 months ago (2012-09-07 04:33:07 UTC) #18
Johnny(Jianning) Ding
+jar for base/ owner review. On 2012/09/07 04:33:07, Johnny(Jianning) Ding wrote: > http://codereview.chromium.org/10580038/diff/23001/base/android/jni_android.cc > File ...
8 years, 3 months ago (2012-09-07 04:36:20 UTC) #19
Johnny(Jianning) Ding
The failure on try bot 'android-test' is not relevant to this patch. On 2012/09/07 04:36:20, ...
8 years, 3 months ago (2012-09-07 12:24:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jnd@chromium.org/10580038/18003
8 years, 3 months ago (2012-09-13 13:48:46 UTC) #21
commit-bot: I haz the power
Presubmit check for 10580038-18003 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 3 months ago (2012-09-13 13:48:50 UTC) #22
Johnny(Jianning) Ding
@willchan, @jar, would you please take an owner review? On 2012/09/13 13:48:50, I haz the ...
8 years, 3 months ago (2012-09-13 13:52:06 UTC) #23
jar (doing other things)
lgtm
8 years, 3 months ago (2012-09-14 02:17:26 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jnd@chromium.org/10580038/18003
8 years, 3 months ago (2012-09-17 03:46:58 UTC) #25
commit-bot: I haz the power
Change committed as 157083
8 years, 3 months ago (2012-09-17 06:15:12 UTC) #26
Tom Hudson
This is one of two CLs on the blamelist for "browser_tests" on "Linux ChromiumOS Tests ...
8 years, 3 months ago (2012-09-17 07:17:38 UTC) #27
Johnny(Jianning) Ding
8 years, 3 months ago (2012-09-17 09:03:25 UTC) #28
This CL only affects Android build. The failure should not be caused by it.

On 2012/09/17 07:17:38, Tom Hudson wrote:
> This is one of two CLs on the blamelist for "browser_tests" on "Linux
ChromiumOS
> Tests (2)". If the author is around, please check in on IRC or with the
> sheriffs?

Powered by Google App Engine
This is Rietveld 408576698