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

Issue 27500004: Listen for new system certificates. (Closed)

Created:
7 years, 2 months ago by qsr
Modified:
7 years, 2 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Listen for new system certificates. Android use the system certificate database. This CL ensure that a modification of the system certificates is received by services that listen for those. BUG=149426 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230126

Patch Set 1 #

Patch Set 2 : Re-upload #

Total comments: 17

Patch Set 3 : Follow review. #

Patch Set 4 : Follow review. #

Total comments: 10

Patch Set 5 : Follow review #

Total comments: 13

Patch Set 6 : Follow review #

Patch Set 7 : Fix tests #

Patch Set 8 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -3 lines) Patch
M net/android/java/src/org/chromium/net/X509Util.java View 1 2 3 4 5 6 7 7 chunks +69 lines, -0 lines 0 comments Download
M net/android/javatests/src/org/chromium/net/X509UtilTest.java View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M net/android/net_jni_registrar.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A + net/android/x509_util.h View 1 chunk +8 lines, -3 lines 0 comments Download
A net/android/x509_util.cc View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
M net/cert/cert_database.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M net/cert/cert_database_android.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M tools/gn/secondary/net/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
qsr
Hi Wan-Teh, Can you take a look at this change. I have been obliged to ...
7 years, 2 months ago (2013-10-16 14:14:30 UTC) #1
wtc
Patch set 2 LGTM. qsr: I added rsleevi as a second reviewer. Please wait for ...
7 years, 2 months ago (2013-10-16 15:37:34 UTC) #2
wtc
https://codereview.chromium.org/27500004/diff/2001/net/cert/cert_database.h File net/cert/cert_database.h (right): https://codereview.chromium.org/27500004/diff/2001/net/cert/cert_database.h#newcode47 net/cert/cert_database.h:47: virtual void OnDatabaseUpdated() {} Please mention why this broad ...
7 years, 2 months ago (2013-10-16 15:39:31 UTC) #3
qsr
https://codereview.chromium.org/27500004/diff/2001/net/android/java/src/org/chromium/net/X509Util.java File net/android/java/src/org/chromium/net/X509Util.java (right): https://codereview.chromium.org/27500004/diff/2001/net/android/java/src/org/chromium/net/X509Util.java#newcode77 net/android/java/src/org/chromium/net/X509Util.java:77: * BroadcastReceiver that listen to change in the system ...
7 years, 2 months ago (2013-10-16 16:02:08 UTC) #4
qsr
Adding joth@ for webview digit@ for net/android
7 years, 2 months ago (2013-10-16 16:55:53 UTC) #5
Ryan Sleevi
Hi qsr, thanks for taking this on. I apologize that this is a less than ...
7 years, 2 months ago (2013-10-16 17:40:52 UTC) #6
sgurun-gerrit only
https://codereview.chromium.org/27500004/diff/12001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/27500004/diff/12001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1315 android_webview/java/src/org/chromium/android_webview/AwContents.java:1315: return SslUtil.getCertificateFromDerBytes(mContainerView.getContext(), I think this should be application context, ...
7 years, 2 months ago (2013-10-16 18:19:39 UTC) #7
wtc
Review comments on patch set 4: https://codereview.chromium.org/27500004/diff/2001/net/cert/cert_database.h File net/cert/cert_database.h (right): https://codereview.chromium.org/27500004/diff/2001/net/cert/cert_database.h#newcode87 net/cert/cert_database.h:87: void NotifyObserversOfDatabaseUpdated(); On ...
7 years, 2 months ago (2013-10-16 18:33:23 UTC) #8
qsr
https://codereview.chromium.org/27500004/diff/12001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/27500004/diff/12001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1315 android_webview/java/src/org/chromium/android_webview/AwContents.java:1315: return SslUtil.getCertificateFromDerBytes(mContainerView.getContext(), On 2013/10/16 18:19:39, sgurun wrote: > I ...
7 years, 2 months ago (2013-10-17 09:17:53 UTC) #9
wtc
Patch set 5 LGTM. https://codereview.chromium.org/27500004/diff/52001/net/android/java/src/org/chromium/net/X509Util.java File net/android/java/src/org/chromium/net/X509Util.java (right): https://codereview.chromium.org/27500004/diff/52001/net/android/java/src/org/chromium/net/X509Util.java#newcode287 net/android/java/src/org/chromium/net/X509Util.java:287: private static native void nativeNotifyCertDatabaseUpdated(); ...
7 years, 2 months ago (2013-10-17 20:43:59 UTC) #10
Ryan Sleevi
lgtm https://codereview.chromium.org/27500004/diff/52001/net/cert/cert_database_android.cc File net/cert/cert_database_android.cc (right): https://codereview.chromium.org/27500004/diff/52001/net/cert/cert_database_android.cc#newcode42 net/cert/cert_database_android.cc:42: make_scoped_refptr(cert)); On 2013/10/17 20:43:59, wtc wrote: > > ...
7 years, 2 months ago (2013-10-17 22:07:51 UTC) #11
sgurun-gerrit only
On 2013/10/17 22:07:51, Ryan Sleevi wrote: > lgtm > > https://codereview.chromium.org/27500004/diff/52001/net/cert/cert_database_android.cc > File net/cert/cert_database_android.cc (right): ...
7 years, 2 months ago (2013-10-17 22:21:20 UTC) #12
joth
https://codereview.chromium.org/27500004/diff/52001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/27500004/diff/52001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1316 android_webview/java/src/org/chromium/android_webview/AwContents.java:1316: mContentViewCore.getContext().getApplicationContext(), doesn't make much odds, but mContainerView.getContext().getApplicationContext() would be ...
7 years, 2 months ago (2013-10-17 22:43:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/27500004/70001
7 years, 2 months ago (2013-10-18 07:21:31 UTC) #14
qsr
https://chromiumcodereview.appspot.com/27500004/diff/52001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://chromiumcodereview.appspot.com/27500004/diff/52001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1316 android_webview/java/src/org/chromium/android_webview/AwContents.java:1316: mContentViewCore.getContext().getApplicationContext(), N/A anymore. https://chromiumcodereview.appspot.com/27500004/diff/52001/net/android/java/src/org/chromium/net/X509Util.java File net/android/java/src/org/chromium/net/X509Util.java (right): https://chromiumcodereview.appspot.com/27500004/diff/52001/net/android/java/src/org/chromium/net/X509Util.java#newcode47 net/android/java/src/org/chromium/net/X509Util.java:47: ...
7 years, 2 months ago (2013-10-18 10:35:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/27500004/70001
7 years, 2 months ago (2013-10-18 21:40:20 UTC) #16
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) app_list_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=90579
7 years, 2 months ago (2013-10-19 05:33:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/27500004/70001
7 years, 2 months ago (2013-10-21 07:25:14 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/27500004/70001
7 years, 2 months ago (2013-10-21 13:15:44 UTC) #20
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 2 months ago (2013-10-21 21:24:49 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/27500004/810001
7 years, 2 months ago (2013-10-22 09:35:53 UTC) #22
commit-bot: I haz the power
Change committed as 230126
7 years, 2 months ago (2013-10-22 14:35:17 UTC) #23
Torne
On 2013/10/22 14:35:17, I haz the power (commit-bot) wrote: > Change committed as 230126 This ...
7 years, 2 months ago (2013-10-22 17:17:30 UTC) #24
wtc
On 2013/10/22 17:17:30, Torne wrote: > > This has broken running gyp with --check because ...
7 years, 2 months ago (2013-10-22 21:22:59 UTC) #25
Ryan Sleevi
On 2013/10/22 21:22:59, wtc wrote: > On 2013/10/22 17:17:30, Torne wrote: > > > > ...
7 years, 2 months ago (2013-10-22 21:25:22 UTC) #26
Ryan Sleevi
7 years, 2 months ago (2013-10-22 21:25:34 UTC) #27
Message was sent while issue was closed.
On 2013/10/22 21:25:22, Ryan Sleevi wrote:
> On 2013/10/22 21:22:59, wtc wrote:
> > On 2013/10/22 17:17:30, Torne wrote:
> > >
> > > This has broken running gyp with --check because it introduces two files
> with
> > > the same basename in the same target, which is disallowed because MSVC
> doesn't
> > > support it (there are now two x509_util.cc's).
> > 
> > We can fix this by renaming those files x509_util_android.{h,cc}.
> > 
> > Torne, can this be fixed by excluding the files for OS=="win" using
'sources!'
> > or 'sources/'?
> 
> Torne already landed a fix for this.

er, Nyquist did

Powered by Google App Engine
This is Rietveld 408576698