Bug 1505897 - Initialize GeckoSystemStateListener in child process r=agi

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
James Willcox 2018-11-15 19:26:19 +00:00
parent b7a44b77fb
commit eaee9639fd
3 changed files with 3 additions and 2 deletions

View File

@ -284,6 +284,8 @@ public class GeckoThread extends Thread {
final String resourcePath = context.getPackageResourcePath();
GeckoSystemStateListener.getInstance().initialize(context);
try {
loadGeckoLibs(context, resourcePath);
return;

View File

@ -232,8 +232,6 @@ public final class GeckoRuntime implements Parcelable {
// Initialize the system ClipboardManager by accessing it on the main thread.
GeckoAppShell.getApplicationContext().getSystemService(Context.CLIPBOARD_SERVICE);
GeckoSystemStateListener.getInstance().initialize(context);
return true;
}

View File

@ -412,6 +412,7 @@ nsAppShell::nsAppShell()
if (jni::IsAvailable()) {
GeckoThreadSupport::Init();
GeckoAppShellSupport::Init();
mozilla::GeckoSystemStateListener::Init();
mozilla::widget::Telemetry::Init();
// Set the corresponding state in GeckoThread.