зеркало из https://github.com/mozilla/gecko-dev.git
Bug 545756 - Get rid of quit-application observer [r=Mardak]
Stop observing 'quit-application', remove handling from observe, and remove WeaveSvc.isQuitting --HG-- extra : rebase_source : e52fab892127d4ddd9a7312e74202cc3e09b2c8c
This commit is contained in:
Родитель
f9a2c142e4
Коммит
26cffb7e7f
|
@ -99,7 +99,6 @@ WeaveSvc.prototype = {
|
|||
|
||||
_lock: Utils.lock,
|
||||
_catch: Utils.catch,
|
||||
_isQuitting: false,
|
||||
_loggedIn: false,
|
||||
_syncInProgress: false,
|
||||
_keyGenEnabled: true,
|
||||
|
@ -168,9 +167,6 @@ WeaveSvc.prototype = {
|
|||
|
||||
get isLoggedIn() { return this._loggedIn; },
|
||||
|
||||
get isQuitting() { return this._isQuitting; },
|
||||
set isQuitting(value) { this._isQuitting = value; },
|
||||
|
||||
get keyGenEnabled() { return this._keyGenEnabled; },
|
||||
set keyGenEnabled(value) { this._keyGenEnabled = value; },
|
||||
|
||||
|
@ -284,7 +280,6 @@ WeaveSvc.prototype = {
|
|||
|
||||
Svc.Observer.addObserver(this, "network:offline-status-changed", true);
|
||||
Svc.Observer.addObserver(this, "private-browsing", true);
|
||||
Svc.Observer.addObserver(this, "quit-application", true);
|
||||
Svc.Observer.addObserver(this, "weave:service:sync:finish", true);
|
||||
Svc.Observer.addObserver(this, "weave:service:sync:error", true);
|
||||
Svc.Observer.addObserver(this, "weave:service:backoff:interval", true);
|
||||
|
@ -384,9 +379,6 @@ WeaveSvc.prototype = {
|
|||
this._log.trace("Private browsing change: " + data);
|
||||
this._checkSyncStatus();
|
||||
break;
|
||||
case "quit-application":
|
||||
this._onQuitApplication();
|
||||
break;
|
||||
case "weave:service:sync:error":
|
||||
this._handleSyncError();
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче