Bug 1594820: Part 4 - Modify GeckoThread.preload to directly call into the process manager; r=geckoview-reviewers,snorp

Now that everything in `GeckoProcessManager` runs on the XPCOM launcher thread,
`GeckoThread` should just call `GeckoProcessManager.preload()` directly.

Differential Revision: https://phabricator.services.mozilla.com/D57840

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Aaron Klotz 2020-01-20 07:45:55 +00:00
Родитель ed64053aec
Коммит c21015215b
1 изменённых файлов: 2 добавлений и 7 удалений

Просмотреть файл

@ -448,13 +448,8 @@ public class GeckoThread extends Thread {
initGeckoEnvironment();
if ((mInitInfo.flags & FLAG_PRELOAD_CHILD) != 0) {
ThreadUtils.postToBackgroundThread(new Runnable() {
@Override
public void run() {
// Preload the content ("tab") child process.
GeckoProcessManager.getInstance().preload("tab");
}
});
// Preload the content ("tab") child process.
GeckoProcessManager.getInstance().preload("tab");
}
if ((mInitInfo.flags & FLAG_DEBUGGING) != 0) {