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

Issue 2810433002: android: Async setupConnection binder call (Closed)

Created:
3 years, 8 months ago by boliu
Modified:
3 years, 8 months ago
CC:
chromium-reviews, jam, danakj+watch_chromium.org, agrieve+watch_chromium.org, darin-cc_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

android: Async setupConnection binder call Make setupConnection oneway/async. Add a ICallbackInt interface to return the PID of the child process. The reply is then posted back to launcher thread. Connection setup is already mostly async so only involves moving related code to the reply callback. One caveat is that getCallingPid no longer works and just returns 0 for oneway calls. The pid check is not strictly necessary, so dropped the from setupConnection instead. BUG=689758, 690118 Review-Url: https://codereview.chromium.org/2810433002 Cr-Commit-Position: refs/heads/master@{#463332} Committed: https://chromium.googlesource.com/chromium/src/+/39c7bd71dc2f9c9f692dd346e4e4e525af25ede1 Reland contains fix for flaky test. The pid is received asynchronously now, so wait for it after allocating a connection. Review-Url: https://codereview.chromium.org/2810433002 Cr-Commit-Position: refs/heads/master@{#463419} Committed: https://chromium.googlesource.com/chromium/src/+/03ee275e219a1dd9ab281452507aeb7357c6f4c7

Patch Set 1 #

Patch Set 2 : drop pid check #

Patch Set 3 : drop unnecessary check #

Total comments: 5

Patch Set 4 : close fd synchronously #

Patch Set 5 : deflake test #

Messages

Total messages: 30 (16 generated)
boliu
ptal rsesek: everything jcivelli: should I update ITestClient in the same CL? I'll get a ...
3 years, 8 months ago (2017-04-10 13:40:19 UTC) #7
Jay Civelli
On 2017/04/10 13:40:19, boliu wrote: > ptal > > rsesek: everything > jcivelli: should I ...
3 years, 8 months ago (2017-04-10 16:12:44 UTC) #8
Robert Sesek
https://codereview.chromium.org/2810433002/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java File content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java (left): https://codereview.chromium.org/2810433002/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java#oldcode136 content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java:136: Log.e(TAG, "Client pid %d does not match the bound ...
3 years, 8 months ago (2017-04-10 16:17:58 UTC) #9
boliu
https://codereview.chromium.org/2810433002/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java File content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java (left): https://codereview.chromium.org/2810433002/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java#oldcode136 content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java:136: Log.e(TAG, "Client pid %d does not match the bound ...
3 years, 8 months ago (2017-04-10 16:23:05 UTC) #10
Robert Sesek
https://codereview.chromium.org/2810433002/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java File content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java (left): https://codereview.chromium.org/2810433002/diff/40001/content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java#oldcode136 content/public/android/java/src/org/chromium/content/app/ChildProcessServiceImpl.java:136: Log.e(TAG, "Client pid %d does not match the bound ...
3 years, 8 months ago (2017-04-10 16:42:44 UTC) #11
boliu
ptal +torne for base (to stamp the gn change more or less) https://codereview.chromium.org/2810433002/diff/40001/content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java File content/public/android/java/src/org/chromium/content/browser/ChildProcessConnectionImpl.java ...
3 years, 8 months ago (2017-04-10 16:56:30 UTC) #13
Torne
lgtm
3 years, 8 months ago (2017-04-10 17:05:12 UTC) #14
Robert Sesek
lgtm
3 years, 8 months ago (2017-04-10 17:05:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2810433002/60001
3 years, 8 months ago (2017-04-10 17:10:25 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/39c7bd71dc2f9c9f692dd346e4e4e525af25ede1
3 years, 8 months ago (2017-04-10 18:23:59 UTC) #20
please use gerrit instead
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/2806343003/ by rouslan@chromium.org. ...
3 years, 8 months ago (2017-04-10 20:51:15 UTC) #21
boliu
fwiw, I already noticed that flake, and wrote the flake fix here: https://codereview.chromium.org/2810933002/ just gonna ...
3 years, 8 months ago (2017-04-10 21:09:07 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2810433002/80001
3 years, 8 months ago (2017-04-10 21:10:23 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 22:22:31 UTC) #30
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/03ee275e219a1dd9ab281452507a...

Powered by Google App Engine
This is Rietveld 408576698