mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1131430 - Added telemetry to count CoreLocation vs. MLS results. r=jdm
This commit is contained in:
parent
df3314aad3
commit
b0f75d8f6a
@ -12,6 +12,7 @@
|
||||
#include "CoreLocationLocationProvider.h"
|
||||
#include "nsCocoaFeatures.h"
|
||||
#include "prtime.h"
|
||||
#include "mozilla/Telemetry.h"
|
||||
|
||||
#include <CoreLocation/CLError.h>
|
||||
#include <CoreLocation/CLLocation.h>
|
||||
@ -125,6 +126,7 @@ static const CLLocationAccuracy kDEFAULT_ACCURACY = kCLLocationAccuracyNearestTe
|
||||
PR_Now());
|
||||
|
||||
mProvider->Update(geoPosition);
|
||||
Telemetry::Accumulate(Telemetry::GEOLOCATION_OSX_SOURCE_IS_MLS, false);
|
||||
}
|
||||
@end
|
||||
|
||||
@ -145,6 +147,7 @@ CoreLocationLocationProvider::MLSUpdate::Update(nsIDOMGeoPosition *position)
|
||||
}
|
||||
|
||||
mParentLocationProvider.Update(position);
|
||||
Telemetry::Accumulate(Telemetry::GEOLOCATION_OSX_SOURCE_IS_MLS, true);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -325,6 +325,11 @@
|
||||
"kind": "flag",
|
||||
"description": "Has seen location error"
|
||||
},
|
||||
"GEOLOCATION_OSX_SOURCE_IS_MLS": {
|
||||
"expires_in_version": "default",
|
||||
"kind": "boolean",
|
||||
"description": "Geolocation on OS X is either MLS or CoreLocation"
|
||||
},
|
||||
"JS_DEPRECATED_LANGUAGE_EXTENSIONS_IN_CONTENT": {
|
||||
"expires_in_version": "never",
|
||||
"kind": "enumerated",
|
||||
|
Loading…
Reference in New Issue
Block a user