Bug 1372091 - Turn off Leanplum on Beta and release. r=nalexander a=ritu draft
authorNevin Chen <cnevinchen@gmail.com>
Mon, 12 Jun 2017 15:38:30 +0800
changeset 592844 e0e6ec66c056767a6a7f0810c24a9fc2f79a306c
parent 592843 147d07d7d464dc0ced1dedc02e4f19edd08cfa90
child 632939 8db2f794896b3d12e93f109970eae66234b5a942
push id63512
push usernalexander@mozilla.com
push dateMon, 12 Jun 2017 20:02:46 +0000
reviewersnalexander, ritu
bugs1372091
milestone55.0
Bug 1372091 - Turn off Leanplum on Beta and release. r=nalexander a=ritu This disables the compiled (Java) and interpreted (JavaScript) code for mozilla-beta. I cannot at this time determine a /nightly mozconfig that enables the compiled (Java) code in Nightly and developer builds while disabling it in Release and Beta. MozReview-Commit-ID: J6iyXAPht5l
mobile/android/app/mobile.js
mobile/android/config/mozconfigs/android-api-15/nightly
mobile/android/config/mozconfigs/android-api-15/nightly-old-id
--- a/mobile/android/app/mobile.js
+++ b/mobile/android/app/mobile.js
@@ -409,25 +409,27 @@ pref("browser.ui.zoom.force-user-scalabl
 // When removing this Nightly flag, also remember to remove the flags surrounding this feature
 // in GeckoPreferences and BrowserApp (see bug 1245930).
 #ifdef NIGHTLY_BUILD
 pref("ui.bookmark.mobilefolder.enabled", true);
 #else
 pref("ui.bookmark.mobilefolder.enabled", false);
 #endif
 
-#if MOZ_UPDATE_CHANNEL == nightly
-pref("mma.enabled", true);
-#elif MOZ_UPDATE_CHANNEL == beta
+#ifdef RELEASE_OR_BETA
+// MMA is disabled in shipping Beta and Release builds.
+pref("mma.enabled", false);
+#elif MOZ_UPDATE_CHANNEL == nightly
+// Enabled in shipping Nightly builds.
 pref("mma.enabled", true);
 #else
+// And enabled in local developer builds.
 pref("mma.enabled", true);
 #endif
 
-
 pref("ui.touch.radius.enabled", false);
 pref("ui.touch.radius.leftmm", 3);
 pref("ui.touch.radius.topmm", 5);
 pref("ui.touch.radius.rightmm", 3);
 pref("ui.touch.radius.bottommm", 2);
 pref("ui.touch.radius.visitedWeight", 120);
 
 pref("ui.mouse.radius.enabled", false);
--- a/mobile/android/config/mozconfigs/android-api-15/nightly
+++ b/mobile/android/config/mozconfigs/android-api-15/nightly
@@ -9,11 +9,10 @@ ac_add_options --target=arm-linux-androi
 ac_add_options --with-branding=mobile/android/branding/beta
 
 # This will overwrite the default of stripping everything and keep the symbol table.
 # This is useful for profiling with eideticker. See bug 788680
 STRIP_FLAGS="--strip-debug"
 
 export MOZILLA_OFFICIAL=1
 export MOZ_TELEMETRY_REPORTING=1
-export MOZ_ANDROID_MMA=1
 
 . "$topsrcdir/mobile/android/config/mozconfigs/common.override"
--- a/mobile/android/config/mozconfigs/android-api-15/nightly-old-id
+++ b/mobile/android/config/mozconfigs/android-api-15/nightly-old-id
@@ -9,11 +9,10 @@ ac_add_options --target=arm-linux-androi
 ac_add_options --with-branding=mobile/android/branding/nightly-old-id
 
 # This will overwrite the default of stripping everything and keep the symbol table.
 # This is useful for profiling with eideticker. See bug 788680
 STRIP_FLAGS="--strip-debug"
 
 export MOZILLA_OFFICIAL=1
 export MOZ_TELEMETRY_REPORTING=1
-export MOZ_ANDROID_MMA=1
 
 . "$topsrcdir/mobile/android/config/mozconfigs/common.override"