Keep MOZ_GLEAN_ANDROID checked
I think that @cypherpunks1 said in some comment that Mozilla added a flag that enables/disables Glean only on Android.
I found MOZ_GLEAN_ANDROID
in toolkit/moz.configure
, but Mozilla decided not to add a config option for it, but rather just check if we're on Android:
@depends(target)
def glean_android(target):
return target.os == "Android"
set_config("MOZ_GLEAN_ANDROID", True, when=glean_android)
set_define("MOZ_GLEAN_ANDROID", True, when=glean_android)
The documentation says:
MOZ_GLEAN_ANDROID
If set, recording Glean metrics are a no-op. Glean will not be initialized. Only set on Android. This define will be removed after we sort out how Android and Geckoview will work (see bug 1670261). It can be queried in C++ via
#ifndef MOZ_GLEAN_ANDROID
, and in JS viaAppConstants.MOZ_GLEAN_ANDROID
.
So, maybe having it set is what we want, but we should keep an eye on it, in the future.
Edited by Pier Angelo Vendrame