Bug 1313125 - Get rid of needless synchronous message from AppsServiceChild.jsm. r?jryans
MozReview-Commit-ID: DHbylEOEaKB
--- a/dom/apps/AppsServiceChild.jsm
+++ b/dom/apps/AppsServiceChild.jsm
@@ -98,23 +98,17 @@ this.DOMApplicationRegistry = {
init: function init() {
this.cpmm = Cc["@mozilla.org/childprocessmessagemanager;1"]
.getService(Ci.nsISyncMessageSender);
APPS_IPC_MSG_NAMES.forEach((function(aMsgName) {
this.cpmm.addMessageListener(aMsgName, this);
}).bind(this));
- this.cpmm.sendAsyncMessage("Webapps:RegisterForMessages", {
- messages: APPS_IPC_MSG_NAMES
- });
-
- // We need to prime the cache with the list of apps.
- let list = this.cpmm.sendSyncMessage("Webapps:GetList", { })[0];
- this.webapps = list ? list.webapps : { };
+ this.webapps = { };
// We need a fast mapping from localId -> app, so we add an index.
// We also add the manifest to the app object.
this.localIdIndex = { };
for (let id in this.webapps) {
let app = this.webapps[id];
this.localIdIndex[app.localId] = app;
app.manifest = list.manifests[id];
}