Bug 900694 - Part 1: add ProfileInformationCache.removeAddon. r=nalexander
authorRichard Newman <rnewman@mozilla.com>
Thu, 01 Aug 2013 20:22:17 -0700
changeset 153476 a0e2092ffbf7090c6ee472072a4b5d845eab7949
parent 153475 76db98535799125530b6246ab65d14c739bd99a3
child 153477 5fd1ed6740f8f4ed5641489d2dde2dbc0778c59f
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs900694
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 900694 - Part 1: add ProfileInformationCache.removeAddon. r=nalexander
mobile/android/base/background/healthreport/ProfileInformationCache.java
--- a/mobile/android/base/background/healthreport/ProfileInformationCache.java
+++ b/mobile/android/base/background/healthreport/ProfileInformationCache.java
@@ -212,16 +212,20 @@ public class ProfileInformationCache imp
   public JSONObject getAddonsJSON() {
     return addons;
   }
 
   public void updateJSONForAddon(String id, String json) throws Exception {
     addons.put(id, new JSONObject(json));
   }
 
+  public void removeAddon(String id) {
+    addons.remove(id);
+  }
+
   /**
    * Will throw if you haven't done a full update at least once.
    */
   public void updateJSONForAddon(String id, JSONObject json) {
     if (addons == null) {
       throw new IllegalStateException("Cannot incrementally update add-ons without first initializing.");
     }
     try {