mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
Backed out changeset 58b0f65614be (bug 1410907) for build bustage at toolkit/components/telemetry/Telemetry.cpp:1591. r=backout on a CLOSED TREE
This commit is contained in:
parent
4bf8e88346
commit
6825b43218
@ -162,8 +162,6 @@ public:
|
||||
const bool success);
|
||||
static bool CanRecordBase();
|
||||
static bool CanRecordExtended();
|
||||
static bool CanRecordReleaseData();
|
||||
static bool CanRecordPrereleaseData();
|
||||
private:
|
||||
TelemetryImpl();
|
||||
~TelemetryImpl();
|
||||
@ -1176,17 +1174,6 @@ TelemetryImpl::SetCanRecordExtended(bool canRecord) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
TelemetryImpl::GetCanRecordReleaseData(bool* ret) {
|
||||
*ret = mCanRecordBase;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
TelemetryImpl::GetCanRecordPrereleaseData(bool* ret) {
|
||||
*ret = mCanRecordExtended;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
TelemetryImpl::GetIsOfficialTelemetry(bool *ret) {
|
||||
@ -1581,18 +1568,6 @@ TelemetryImpl::CanRecordExtended()
|
||||
return NS_SUCCEEDED(rv) && canRecordExtended;
|
||||
}
|
||||
|
||||
bool
|
||||
TelemetryImpl::CanRecordReleaseData()
|
||||
{
|
||||
return CanRecordBase();
|
||||
}
|
||||
|
||||
bool
|
||||
TelemetryImpl::CanRecordPrereleaseData()
|
||||
{
|
||||
return CanRecordExtended();
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS(TelemetryImpl, nsITelemetry, nsIMemoryReporter)
|
||||
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsITelemetry, TelemetryImpl::CreateTelemetryInstance)
|
||||
|
||||
|
@ -258,21 +258,6 @@ bool CanRecordBase();
|
||||
*/
|
||||
bool CanRecordExtended();
|
||||
|
||||
/**
|
||||
* Indicates whether Telemetry release data recording is turned on. Usually true.
|
||||
*
|
||||
* @see nsITelemetry.canRecordReleaseData
|
||||
*/
|
||||
bool CanRecordReleaseData();
|
||||
|
||||
/**
|
||||
* Indicates whether Telemetry pre-release data recording is turned on. Tends
|
||||
* to be true on pre-release channels.
|
||||
*
|
||||
* @see nsITelemetry.canRecordPrereleaseData
|
||||
*/
|
||||
bool CanRecordPrereleaseData();
|
||||
|
||||
/**
|
||||
* Records slow SQL statements for Telemetry reporting.
|
||||
*
|
||||
|
@ -274,34 +274,6 @@ interface nsITelemetry : nsISupports
|
||||
*/
|
||||
attribute boolean canRecordExtended;
|
||||
|
||||
/**
|
||||
* A flag indicating whether Telemetry is recording release data, which is a
|
||||
* smallish subset of our usage data that we're prepared to handle from our
|
||||
* largish release population.
|
||||
*
|
||||
* This is true most of the time.
|
||||
*
|
||||
* This does not indicate whether Telemetry will send any data. That is
|
||||
* governed by user preference and other mechanisms.
|
||||
*
|
||||
* You may use this to determine if it's okay to record your data.
|
||||
*/
|
||||
readonly attribute boolean canRecordReleaseData;
|
||||
|
||||
/**
|
||||
* A flag indicating whether Telemetry is recording prerelease data, which is
|
||||
* a largish amount of usage data that we're prepared to handle from our
|
||||
* smallish pre-release population.
|
||||
*
|
||||
* This is true on pre-release branches of Firefox.
|
||||
*
|
||||
* This does not indicate whether Telemetry will send any data. That is
|
||||
* governed by user preference and other mechanisms.
|
||||
*
|
||||
* You may use this to determine if it's okay to record your data.
|
||||
*/
|
||||
readonly attribute boolean canRecordPrereleaseData;
|
||||
|
||||
/**
|
||||
* A flag indicating whether Telemetry can submit official results (for base or extended
|
||||
* data). This is true on official, non-debug builds with built in support for Mozilla
|
||||
|
@ -599,13 +599,6 @@ add_task(async function test_pingRejection() {
|
||||
() => Assert.ok(true, "Ping submitted after shutdown correctly rejected."));
|
||||
});
|
||||
|
||||
add_task(async function test_newCanRecordsMatchTheOld() {
|
||||
Assert.equal(Telemetry.canRecordBase, Telemetry.canRecordReleaseData,
|
||||
"Release Data is the new way to say Base Collection");
|
||||
Assert.equal(Telemetry.canRecordExtended, Telemetry.canRecordPrereleaseData,
|
||||
"Prerelease Data is the new way to say Extended Collection");
|
||||
});
|
||||
|
||||
add_task(async function stopServer() {
|
||||
await PingServer.stop();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user