Bug 906030 - Part 2: Don't remove guest profile on background thread. r=wesj a=akeybl
authorBrian Nicholson <bnicholson@mozilla.com>
Mon, 26 Aug 2013 16:32:10 -0700
changeset 154003 79caa25bdfaff5e8b02000317432b008dc8ad928
parent 154002 7ebc7be739cec0beb61ca386b8bdc279784df2e7
child 154004 24fe7575387d8c505d01444dc28b7134d35653b3
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)
reviewerswesj, akeybl
bugs906030
milestone25.0a2
Bug 906030 - Part 2: Don't remove guest profile on background thread. r=wesj a=akeybl
mobile/android/base/GeckoProfile.java
--- a/mobile/android/base/GeckoProfile.java
+++ b/mobile/android/base/GeckoProfile.java
@@ -184,22 +184,18 @@ public final class GeckoProfile {
         final GeckoProfile profile = getGuestProfile(context);
 
         if (profile == null) {
             return false;
         } else if (!profile.locked()) {
             profile.mInGuestMode = false;
 
             // If the guest dir exists, but it's unlocked, delete it
-            ThreadUtils.postToBackgroundThread(new Runnable() {
-                @Override
-                public void run() {
-                    removeGuestProfile(context);
-                }
-            });
+            removeGuestProfile(context);
+
             return true;
         }
         return false;
     }
 
     private static void removeGuestProfile(Context context) {
         try {
             File guestDir = getGuestDir(context);