Chromium Code Reviews
Descriptionandroid: Post onServiceConnected to launcher thread
This involves refactoring warm up connection. Previously, start used to
wait on launcher thread for the warm up connection to finish
StartCallbacks, which happens in onServiceConnected on the UI thread.
This isn't possible anymore if onServiceConnected is posted to launcher
thread.
Upside is everything is on launcher thread now, so it's a "simple"
matter of keeping more state. Add |sSpareConnectionStartCallback| to
save the StartCallback of an allocation if StartCallback of the warm up
has not finished StartCallback yet.
Note it's not ok to skip the warm up connection when it is not ready,
because that defeats the point warm up and also will allow webview to
launch more than one service.
This change allows removal of sSpareConnectionLock.
BUG=689758
Review-Url: https://codereview.chromium.org/2822803002
Cr-Commit-Position: refs/heads/master@{#465155}
Committed: https://chromium.googlesource.com/chromium/src/+/223e40da117757e1ddc9d4e5eb71d563f50254c9
Patch Set 1 #Patch Set 2 : rearrange #Patch Set 3 : tweak starting #Patch Set 4 : fix #
Total comments: 4
Patch Set 5 : comment #
Depends on Patchset: Messages
Total messages: 21 (13 generated)
|
||||||||||||||||||||||||||||