Skip to content

Commit

Permalink
Bug 1594820: Part 4 - Modify GeckoThread.preload to directly call int…
Browse files Browse the repository at this point in the history
…o 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
  • Loading branch information
dblohm7 committed Jan 20, 2020
1 parent ed64053 commit c210152
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,8 @@ public void run() {
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) {
Expand Down

0 comments on commit c210152

Please sign in to comment.