Bug 1423046 - Drop an event when User opens the Firefox app (from Leanplum contextual hints); r=mcomella draft
authorPetru <petru.lingurar@softvision.ro>
Wed, 04 Apr 2018 11:21:35 +0300
changeset 777110 7cc4877fd429629c72cfb1abe0a71c8f6cfafa32
parent 776948 00bdc9451be6557ccce1492b9b966d4435615380
child 777196 772447ed7cad9cecdc260e3f4b0c7a874f0134bf
child 777284 51ca48141d1b680d968d2c896dec00e6bda5afbd
push id105080
push userbmo:petru.lingurar@softvision.ro
push dateWed, 04 Apr 2018 09:11:41 +0000
reviewersmcomella
bugs1423046
milestone61.0a1
Bug 1423046 - Drop an event when User opens the Firefox app (from Leanplum contextual hints); r=mcomella We already inform LP about LAUNCH_BROWSER event when the app first starts, now we'll also inform it when the app comes to foreground. MozReview-Commit-ID: 2XW6hXiWGXd
mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
--- a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
@@ -1367,16 +1367,18 @@ public class BrowserApp extends GeckoApp
                 final SharedPreferences sharedPrefs = GeckoSharedPrefs.forProfileName(BrowserApp.this, profile.getName());
                 FileCleanupController.startIfReady(BrowserApp.this, sharedPrefs, profile.getDir().getAbsolutePath());
             }
         });
 
         for (final BrowserAppDelegate delegate : delegates) {
             delegate.onStart(this);
         }
+
+        MmaDelegate.track(MmaDelegate.LAUNCH_BROWSER);
     }
 
     @Override
     public void onStop() {
         super.onStop();
         if (mIsAbortingAppLaunch) {
             return;
         }