mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
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:
parent
b7a44b77fb
commit
eaee9639fd
@ -284,6 +284,8 @@ public class GeckoThread extends Thread {
|
||||
|
||||
final String resourcePath = context.getPackageResourcePath();
|
||||
|
||||
GeckoSystemStateListener.getInstance().initialize(context);
|
||||
|
||||
try {
|
||||
loadGeckoLibs(context, resourcePath);
|
||||
return;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user