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

Issue 1474603004: Remove Android support for out-of-process KeyStores (Closed)

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

Description

Remove Android support for out-of-process KeyStores Support for out-of-process KeyStores was added to Chrome for Android builds to support certain OEM-specific functionality. It worked by binding to a service that implemented the RemoteAndroidKeyStoreInterface, and using that for private key operations, rather than the default in-process KeyStore. However, support for this functionality in Chrome is being retired; device manufacturers wishing to offer this functionality to Chrome users can simply fall back to the default KeyStore implementation. As such, remove the code and service descriptors; only local, in-process KeyStores will be supported. BUG=560614 Committed: https://crrev.com/e04b8f5353ab621c48b90bb46fee24fd0c0f4a29 Cr-Commit-Position: refs/heads/master@{#362649}

Patch Set 1 #

Total comments: 5

Patch Set 2 : remove AndroidPrivateKey and AndroidKeyStore abstractions #

Patch Set 3 : remove AndroidKeyStore instantiation #

Total comments: 2

Patch Set 4 : removed unnecessary method #

Total comments: 10

Patch Set 5 : updated comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -1001 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwBrowserContext.java View 1 2 3 3 chunks +1 line, -10 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java View 1 2 7 chunks +12 lines, -21 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/ClientCertLookupTable.java View 1 3 chunks +4 lines, -5 lines 0 comments Download
M android_webview/native/aw_contents_client_bridge_unittest.cc View 1 2 3 3 chunks +7 lines, -10 lines 0 comments Download
M android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java View 1 2 3 3 chunks +1 line, -14 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java View 3 chunks +0 lines, -10 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/KeyStoreSelectionDialog.java View 1 1 chunk +0 lines, -87 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java View 1 2 3 4 8 chunks +29 lines, -115 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/smartcard/EmptyPKCS11AuthenticationManager.java View 1 chunk +0 lines, -50 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/smartcard/PKCS11AuthenticationManager.java View 1 chunk +0 lines, -45 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/test/android/unit_tests_apk/src/org/chromium/chrome/unit_tests_apk/ChromeNativeTestApplication.java View 2 chunks +0 lines, -6 lines 0 comments Download
M net/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M net/android/BUILD.gn View 1 chunk +0 lines, -10 lines 0 comments Download
D net/android/android_private_key.h View 1 1 chunk +0 lines, -27 lines 0 comments Download
D net/android/android_private_key.cc View 1 1 chunk +0 lines, -25 lines 0 comments Download
M net/android/java/src/org/chromium/net/AndroidKeyStore.java View 1 2 3 4 6 chunks +228 lines, -15 lines 0 comments Download
D net/android/java/src/org/chromium/net/AndroidPrivateKey.java View 1 1 chunk +0 lines, -18 lines 0 comments Download
D net/android/java/src/org/chromium/net/DefaultAndroidKeyStore.java View 1 1 chunk +0 lines, -279 lines 0 comments Download
D net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl View 1 chunk +0 lines, -36 lines 0 comments Download
D net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl View 1 chunk +0 lines, -23 lines 0 comments Download
D net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl View 1 chunk +0 lines, -6 lines 0 comments Download
D net/android/java/src/org/chromium/net/RemoteAndroidKeyStore.java View 1 chunk +0 lines, -127 lines 0 comments Download
M net/android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java View 1 3 chunks +2 lines, -3 lines 0 comments Download
M net/android/keystore.cc View 1 7 chunks +9 lines, -28 lines 0 comments Download
M net/android/keystore_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/android/net_jni_registrar.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M net/net.gyp View 1 2 3 4 2 chunks +0 lines, -16 lines 0 comments Download
M net/net.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (10 generated)
Changwan Ryu
5 years ago (2015-11-25 07:54:21 UTC) #3
Yaron
https://codereview.chromium.org/1474603004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java File chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java (left): https://codereview.chromium.org/1474603004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java#oldcode361 chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java:361: KeyStoreSelectionDialog selectionDialog = new KeyStoreSelectionDialog( You can remove this ...
5 years ago (2015-11-25 16:24:31 UTC) #4
davidben
https://codereview.chromium.org/1474603004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java File chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java (right): https://codereview.chromium.org/1474603004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java#newcode48 chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java:48: new DefaultAndroidKeyStore(); On 2015/11/25 16:24:31, Yaron wrote: > Any ...
5 years ago (2015-11-25 17:48:14 UTC) #5
Changwan Ryu
https://codereview.chromium.org/1474603004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java File chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java (left): https://codereview.chromium.org/1474603004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java#oldcode361 chrome/android/java/src/org/chromium/chrome/browser/SSLClientCertificateRequest.java:361: KeyStoreSelectionDialog selectionDialog = new KeyStoreSelectionDialog( On 2015/11/25 16:24:31, Yaron ...
5 years ago (2015-11-26 02:52:11 UTC) #6
Yaron
lgtm - thanks! You'll need someone from aw/ to look too
5 years ago (2015-11-27 15:16:59 UTC) #8
Changwan Ryu
sgurun@chromium.org: Please review changes in android_webview/
5 years ago (2015-11-30 00:16:35 UTC) #10
sgurun-gerrit only
lgtm with a minor comment. https://codereview.chromium.org/1474603004/diff/40001/android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java File android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java (right): https://codereview.chromium.org/1474603004/diff/40001/android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java#newcode45 android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java:45: private PrivateKey createTestPrivateKey() { ...
5 years ago (2015-11-30 19:05:20 UTC) #11
Changwan Ryu
https://codereview.chromium.org/1474603004/diff/40001/android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java File android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java (right): https://codereview.chromium.org/1474603004/diff/40001/android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java#newcode45 android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java:45: private PrivateKey createTestPrivateKey() { On 2015/11/30 19:05:20, sgurun wrote: ...
5 years ago (2015-12-01 08:17:23 UTC) #12
Yaron
On 2015/12/01 08:17:23, Changwan Ryu wrote: > https://codereview.chromium.org/1474603004/diff/40001/android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java > File > android_webview/unittestjava/src/org/chromium/android_webview/unittest/MockAwContentsClientBridge.java > (right): > ...
5 years ago (2015-12-01 15:21:49 UTC) #13
Changwan Ryu
adding rsleevi for net/ changes since davidben is behind on reviews.
5 years ago (2015-12-02 00:41:30 UTC) #15
Ryan Sleevi
On 2015/12/02 00:41:30, Changwan Ryu wrote: > adding rsleevi for net/ changes since davidben is ...
5 years ago (2015-12-02 00:54:21 UTC) #16
Ryan Sleevi
https://codereview.chromium.org/1474603004/diff/60001/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/1474603004/diff/60001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java#newcode40 android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java:40: private final ClientCertLookupTable mLookupTable; This change is unrelated, isn't ...
5 years ago (2015-12-02 01:06:05 UTC) #17
Changwan Ryu
Changed CL description as suggested. Thanks for pointing it out and drafting it! PTAL. https://codereview.chromium.org/1474603004/diff/60001/android_webview/java/src/org/chromium/android_webview/AwContentsClientBridge.java ...
5 years ago (2015-12-02 05:34:13 UTC) #19
Ryan Sleevi
lgtm
5 years ago (2015-12-02 06:16:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1474603004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1474603004/80001
5 years ago (2015-12-02 06:26:58 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years ago (2015-12-02 06:44:07 UTC) #25
commit-bot: I haz the power
5 years ago (2015-12-02 06:45:11 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e04b8f5353ab621c48b90bb46fee24fd0c0f4a29
Cr-Commit-Position: refs/heads/master@{#362649}

Powered by Google App Engine
This is Rietveld 408576698