Bug 970300 - Correct apkPackageName property name. r=mfinkle, a=sledru
authorMyk Melez <myk@mozilla.org>
Thu, 13 Mar 2014 11:02:34 -0700
changeset 183348 d09190bb3d90a607ae4f8ffa7a09d6b1f77e58e3
parent 183347 2b9f2c873ff4991d11d67fd8f6a58b89bfd3c353
child 183349 869524719690f8e3d6a83d7483d2cc289e1dbf17
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, sledru
bugs970300
milestone29.0a2
Bug 970300 - Correct apkPackageName property name. r=mfinkle, a=sledru
mobile/android/modules/WebappManager.jsm
--- a/mobile/android/modules/WebappManager.jsm
+++ b/mobile/android/modules/WebappManager.jsm
@@ -281,28 +281,28 @@ this.WebappManager = {
       let installedApps = yield this._getInstalledApps();
       if (installedApps.length === 0) {
         return;
       }
 
       // Map APK names to APK versions.
       let apkNameToVersion = JSON.parse(sendMessageToJava({
         type: "Webapps:GetApkVersions",
-        packageNames: installedApps.map(app => app.packageName).filter(packageName => !!packageName)
+        packageNames: installedApps.map(app => app.apkPackageName).filter(apkPackageName => !!apkPackageName)
       }));
 
       // Map manifest URLs to APK versions, which is what the service needs
       // in order to tell us which apps are outdated; and also map them to app
       // objects, which the downloader/installer uses to download/install APKs.
       // XXX Will this cause us to update apps without packages, and if so,
       // does that satisfy the legacy migration story?
       let manifestUrlToApkVersion = {};
       let manifestUrlToApp = {};
       for (let app of installedApps) {
-        manifestUrlToApkVersion[app.manifestURL] = apkNameToVersion[app.packageName] || 0;
+        manifestUrlToApkVersion[app.manifestURL] = apkNameToVersion[app.apkPackageName] || 0;
         manifestUrlToApp[app.manifestURL] = app;
       }
 
       let outdatedApps = yield this._getOutdatedApps(manifestUrlToApkVersion, userInitiated);
 
       if (outdatedApps.length === 0) {
         // If the user asked us to check for updates, tell 'em we came up empty.
         if (userInitiated) {