Backed out changeset 506d96e0b240 (bug 1405299)

--HG--
extra : rebase_source : 6f2e6c7cf26843d29b6f46aa96d3f8d00cb820be
This commit is contained in:
Sebastian Hengst 2017-10-12 15:29:12 +02:00
Родитель 41bbe5c851
Коммит c797bda729
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -653,12 +653,12 @@ var TelemetrySendImpl = {
this._log.trace("setup");
this._testMode = testing;
this._sendingEnabled = true;
Services.obs.addObserver(this, TOPIC_IDLE_DAILY);
Services.obs.addObserver(this, TOPIC_PROFILE_CHANGE_NET_TEARDOWN);
this._server = Services.prefs.getStringPref(TelemetryUtils.Preferences.Server, undefined);
this._sendingEnabled = true;
// Annotate crash reports so that crash pings are sent correctly and listen
// to pref changes to adjust the annotations accordingly.
@ -797,10 +797,6 @@ var TelemetrySendImpl = {
* Notify that we can start submitting data to the servers.
*/
notifyCanUpload() {
if (!this._sendingEnabled) {
this._log.trace("notifyCanUpload - notifying before sending is enabled. Ignoring.");
return Promise.resolve();
}
// Let the scheduler trigger sending pings if possible, also inform the
// crash reporter that it can send crash pings if appropriate.
SendScheduler.triggerSendingPings(true);