Bug 1131430 - Added telemetry to count CoreLocation vs. MLS results. r=jdm

This commit is contained in:
Garvan Keeley 2015-02-10 10:45:36 -05:00
parent df3314aad3
commit b0f75d8f6a
2 changed files with 8 additions and 0 deletions

View File

@ -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;
}

View File

@ -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",