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

Issue 2821583002: android: Post stop/onServiceDisconnected to launcher (Closed)

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

Description

android: Post stop/onServiceDisconnected to launcher From native, stop used to be called on both the client (UI/IO) thread and on launcher thread, depending only which ChildProcessLauncher method client calls. Now post both to launcher thread. onServiceDisconnected to launcher thread as well. onServiceDisconnected also calls stop, so these two changes are bundled together. This allows all synchronization to be removed from Allocator since everything is accessed on the Launcher thread only. But once again, tests needed to be fixed here as well. Note onServiceConnected is unchanged because it has some interaction with the warm up connection. Potential risks: I think delaying native calls are fine. stop was always asynchronous anyway. There is a bit of a risk delaying onServiceDisconnected because dropping bindings will prevent android from restarting the service on our behalf. I think we just have to swallow this latency and one day unify everything to run on the launcher thread. Of course there could be other unforeseen issues. BUG=689758 Review-Url: https://codereview.chromium.org/2821583002 Cr-Commit-Position: refs/heads/master@{#465139} Committed: https://chromium.googlesource.com/chromium/src/+/da4f4f98353bc5fd8f88300721260355bb994b3b

Patch Set 1 #

Patch Set 2 : remove alloctor synchronization #

Patch Set 3 : rebase #

Messages

Total messages: 18 (13 generated)
boliu
ptal. again maria to review, jay fyi I think I'll wait until tomorrow after branch ...
3 years, 8 months ago (2017-04-13 23:18:07 UTC) #6
boliu
maria is ooo today, so I'm just piling more things onto this CL. turns out ...
3 years, 8 months ago (2017-04-14 18:32:23 UTC) #8
Maria
lgtm
3 years, 8 months ago (2017-04-18 03:48:41 UTC) #13
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/2821583002/40001
3 years, 8 months ago (2017-04-18 03:56:46 UTC) #15
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 04:40:32 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/da4f4f98353bc5fd8f8830072126...

Powered by Google App Engine
This is Rietveld 408576698