ChromeTabbedActivity.initializeUIWithNative to spread work across tasks

On slow devices this task can take an excessivly long time (over 150ms) and
because the thread is cooperative multitasked it starves more important
work (e.g. navigation tasks). Splitting this up into a number of smaller
tasks (mostly) fixes the problem.

Bug: 863341
Change-Id: Id9b455e7d4188f109b9688e265dcee6cf4c832cb
Commit-Queue: Alex Clarke <>
Reviewed-by: Yaron Friedman <>
Reviewed-by: Sami Kyöstilä <>
Reviewed-by: Mohamed Heikal <>
Cr-Commit-Position: refs/heads/master@{#663245}
3 files changed