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

Issue 235563005: Add client cert support to android_webview (Closed)

Created:
6 years, 8 months ago by sgurun-gerrit only
Modified:
6 years, 8 months ago
Reviewers:
Jay Civelli, wtc, boliu, digit1
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Add client cert support to android_webview This CL implements client certs backend for android_webview. Most of the code path is similar to how chrome handles client certs. the callbacks are eventually plumbed to webview as APIs. We still need to answer the question that if ClientCert cache is needed at the android_webview layer. BUG=b/12983007 TBR=jcivelli@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=265380

Patch Set 1 #

Patch Set 2 : fix a clang issue #

Patch Set 3 : temporary change to ease rolling to downstream #

Patch Set 4 : fix a test compile issue #

Patch Set 5 : fix findbugs issues #

Patch Set 6 : revert unintended file addition #

Total comments: 36

Patch Set 7 : code review phase 1 #

Total comments: 18

Patch Set 8 : code review phase 2 #

Total comments: 22

Patch Set 9 : code review phase 3 #

Total comments: 18

Patch Set 10 : code review phase 4 #

Total comments: 4

Patch Set 11 : code review phase 5 #

Patch Set 12 : provide a message as part of exception #

Patch Set 13 : code review phase 6 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+687 lines, -13 lines) Patch
M android_webview/android_webview_tests.gypi View 2 chunks +2 lines, -0 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 chunk +7 lines, -4 lines 0 comments Download
M android_webview/browser/aw_contents_client_bridge_base.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwBrowserContext.java View 1 2 3 4 5 6 4 chunks +17 lines, -2 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 3 chunks +12 lines, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClient.java View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +136 lines, -1 line 0 comments Download
A android_webview/java/src/org/chromium/android_webview/ClientCertLookupTable.java View 1 2 3 4 5 6 1 chunk +76 lines, -0 lines 0 comments Download
M android_webview/native/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 chunk +3 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents_client_bridge.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -1 line 0 comments Download
M android_webview/native/aw_contents_client_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +173 lines, -4 lines 5 comments Download
A android_webview/native/aw_contents_client_bridge_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +152 lines, -0 lines 0 comments Download
M android_webview/native/webview_native.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/test/shell/src/org/chromium/android_webview/test/NullContentsClient.java View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
A android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java View 1 2 3 4 5 6 7 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
sgurun-gerrit only
This is the client_cert chromium implementation for webview. I will add some more tests but ...
6 years, 8 months ago (2014-04-14 18:54:29 UTC) #1
sgurun-gerrit only
On 2014/04/14 18:54:29, sgurun wrote: > This is the client_cert chromium implementation for webview. I ...
6 years, 8 months ago (2014-04-14 20:36:17 UTC) #2
boliu
Didn't really look at tests yet https://codereview.chromium.org/235563005/diff/110001/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/235563005/diff/110001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode1372 android_webview/java/src/org/chromium/android_webview/AwContents.java:1372: * @see android.webvkit.WebView#clearClientCertPreferences() ...
6 years, 8 months ago (2014-04-14 23:56:04 UTC) #3
sgurun-gerrit only
thanks for the quick review. There are some cases that I will add to the ...
6 years, 8 months ago (2014-04-15 23:40:03 UTC) #4
boliu
Should add one integration test to run through the java bits too. https://codereview.chromium.org/235563005/diff/110001/android_webview/native/aw_contents_client_bridge.cc File android_webview/native/aw_contents_client_bridge.cc ...
6 years, 8 months ago (2014-04-16 02:57:46 UTC) #5
sgurun-gerrit only
@boliu: I will upload a new version today with fixes. Answers to some of your ...
6 years, 8 months ago (2014-04-17 15:10:50 UTC) #6
sgurun-gerrit only
addressed code review. Will add an integration test. May remove the webview layer cache depending ...
6 years, 8 months ago (2014-04-18 01:44:55 UTC) #7
boliu
Didn't look at tests this round. https://codereview.chromium.org/235563005/diff/130001/android_webview/native/aw_contents_client_bridge_unittest.cc File android_webview/native/aw_contents_client_bridge_unittest.cc (right): https://codereview.chromium.org/235563005/diff/130001/android_webview/native/aw_contents_client_bridge_unittest.cc#newcode19 android_webview/native/aw_contents_client_bridge_unittest.cc:19: On 2014/04/17 15:10:51, ...
6 years, 8 months ago (2014-04-18 17:10:12 UTC) #8
sgurun-gerrit only
https://codereview.chromium.org/235563005/diff/130001/android_webview/native/aw_contents_client_bridge_unittest.cc File android_webview/native/aw_contents_client_bridge_unittest.cc (right): https://codereview.chromium.org/235563005/diff/130001/android_webview/native/aw_contents_client_bridge_unittest.cc#newcode19 android_webview/native/aw_contents_client_bridge_unittest.cc:19: That's something very loosely applied it seems -just checked ...
6 years, 8 months ago (2014-04-19 01:28:49 UTC) #9
sgurun-gerrit only
@tommi: need lgtm for android_webview/native/DEPS
6 years, 8 months ago (2014-04-19 01:32:09 UTC) #10
sgurun-gerrit only
@tommi: need lgtm for android_webview/native/DEPS
6 years, 8 months ago (2014-04-19 01:32:43 UTC) #11
boliu
I'm running out of nits to complain. Could a net owner take a look? https://codereview.chromium.org/235563005/diff/150001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java ...
6 years, 8 months ago (2014-04-21 16:56:45 UTC) #12
sgurun-gerrit only
seems wtc is OOO. I asked digit, and hopefully he will be able to take ...
6 years, 8 months ago (2014-04-21 18:45:20 UTC) #13
sgurun-gerrit only
thanks https://codereview.chromium.org/235563005/diff/150001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java File android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java (right): https://codereview.chromium.org/235563005/diff/150001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java#newcode185 android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java:185: // We've taken the ownership of the native ...
6 years, 8 months ago (2014-04-21 23:53:29 UTC) #14
boliu
https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc File android_webview/native/aw_contents_client_bridge.cc (right): https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc#newcode197 android_webview/native/aw_contents_client_bridge.cc:197: if (!callback || callback->is_null()) { What if in a ...
6 years, 8 months ago (2014-04-22 00:20:55 UTC) #15
sgurun-gerrit only
https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc File android_webview/native/aw_contents_client_bridge.cc (right): https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc#newcode197 android_webview/native/aw_contents_client_bridge.cc:197: if (!callback || callback->is_null()) { the best way to ...
6 years, 8 months ago (2014-04-22 00:44:35 UTC) #16
boliu
https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc File android_webview/native/aw_contents_client_bridge.cc (right): https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc#newcode197 android_webview/native/aw_contents_client_bridge.cc:197: if (!callback || callback->is_null()) { On 2014/04/22 00:44:36, sgurun ...
6 years, 8 months ago (2014-04-22 00:47:56 UTC) #17
sgurun-gerrit only
https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc File android_webview/native/aw_contents_client_bridge.cc (right): https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc#newcode197 android_webview/native/aw_contents_client_bridge.cc:197: if (!callback || callback->is_null()) { Assertions and exceptions are ...
6 years, 8 months ago (2014-04-22 01:12:26 UTC) #18
boliu
https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc File android_webview/native/aw_contents_client_bridge.cc (right): https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc#newcode197 android_webview/native/aw_contents_client_bridge.cc:197: if (!callback || callback->is_null()) { On 2014/04/22 01:12:27, sgurun ...
6 years, 8 months ago (2014-04-22 01:32:17 UTC) #19
sgurun-gerrit only
https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc File android_webview/native/aw_contents_client_bridge.cc (right): https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc#newcode197 android_webview/native/aw_contents_client_bridge.cc:197: if (!callback || callback->is_null()) { On 2014/04/22 01:32:17, boliu ...
6 years, 8 months ago (2014-04-22 02:06:46 UTC) #20
sgurun-gerrit only
https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc File android_webview/native/aw_contents_client_bridge.cc (right): https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc#newcode197 android_webview/native/aw_contents_client_bridge.cc:197: if (!callback || callback->is_null()) { On 2014/04/22 02:06:47, sgurun ...
6 years, 8 months ago (2014-04-22 17:41:07 UTC) #21
digit1
lgtm (for the C++ part in aw_contents_client_bridge). Thanks. https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc File android_webview/native/aw_contents_client_bridge.cc (right): https://codereview.chromium.org/235563005/diff/170001/android_webview/native/aw_contents_client_bridge.cc#newcode197 android_webview/native/aw_contents_client_bridge.cc:197: if ...
6 years, 8 months ago (2014-04-22 18:11:12 UTC) #22
boliu
lgtm
6 years, 8 months ago (2014-04-22 18:27:15 UTC) #23
sgurun-gerrit only
The CQ bit was checked by sgurun@chromium.org
6 years, 8 months ago (2014-04-22 18:40:18 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/235563005/270001
6 years, 8 months ago (2014-04-22 18:40:55 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-22 18:49:14 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 8 months ago (2014-04-22 18:49:15 UTC) #27
sgurun-gerrit only
Ah. git cl upload suggested tommi but I see that he is only owner for ...
6 years, 8 months ago (2014-04-22 18:59:57 UTC) #28
sgurun-gerrit only
Ah. git cl upload suggested tommi but I see that he is only owner for ...
6 years, 8 months ago (2014-04-22 19:00:01 UTC) #29
sgurun-gerrit only
The CQ bit was checked by sgurun@chromium.org
6 years, 8 months ago (2014-04-22 21:30:35 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sgurun@chromium.org/235563005/270001
6 years, 8 months ago (2014-04-22 21:31:03 UTC) #31
Jay Civelli
LGTM for DEPS
6 years, 8 months ago (2014-04-22 21:37:39 UTC) #32
commit-bot: I haz the power
Change committed as 265380
6 years, 8 months ago (2014-04-22 22:22:46 UTC) #33
wtc
Review comments on patch set 13: Selim: yes, I was on vacation. digit is a ...
6 years, 8 months ago (2014-04-22 22:47:16 UTC) #34
sgurun-gerrit only
On 2014/04/22 22:47:16, wtc wrote: > Review comments on patch set 13: > > Selim: ...
6 years, 8 months ago (2014-04-22 23:20:29 UTC) #35
sgurun-gerrit only
6 years, 8 months ago (2014-04-23 00:50:47 UTC) #36
Message was sent while issue was closed.
https://codereview.chromium.org/235563005/diff/270001/android_webview/native/...
File android_webview/native/aw_contents_client_bridge.cc (right):

https://codereview.chromium.org/235563005/diff/270001/android_webview/native/...
android_webview/native/aw_contents_client_bridge.cc:33: namespace {
On 2014/04/22 22:47:16, wtc wrote:
> 
> Nit: add a blank line after this line.

Done.

https://codereview.chromium.org/235563005/diff/270001/android_webview/native/...
android_webview/native/aw_contents_client_bridge.cc:133: for (size_t n = 0; n <
cert_request_info->cert_key_types.size(); ++n) {
On 2014/04/22 22:47:16, wtc wrote:
> 
> Nit: the for loop index is usually named |i| by convention. (|n| is often the
> variable for the iteration count.)
> 
> Also on line 216.

Done.

Powered by Google App Engine
This is Rietveld 408576698