From 07cc85ecb9998c8e5c978d72e014dbe30e9c3ea7 Mon Sep 17 00:00:00 2001 From: Brian Nicholson Date: Mon, 10 Jun 2013 15:37:39 -0700 Subject: [PATCH] Bug 880599 - Remove GeckoProfile.get() from provider creation. r=gbrown --- mobile/android/base/db/BrowserProvider.java | 11 ----------- mobile/android/base/db/TabsProvider.java | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/mobile/android/base/db/BrowserProvider.java b/mobile/android/base/db/BrowserProvider.java index 55aad4d4551..0784a5c59ff 100644 --- a/mobile/android/base/db/BrowserProvider.java +++ b/mobile/android/base/db/BrowserProvider.java @@ -2148,17 +2148,6 @@ public class BrowserProvider extends ContentProvider { public boolean onCreate() { debug("Creating BrowserProvider"); - ThreadUtils.postToBackgroundThread(new Runnable() { - @Override - public void run() { - // Kick this off early. It is synchronized so that other callers will wait - try { - GeckoProfile.get(getContext()).getDir(); - } catch (Exception ex) { - Log.e(LOGTAG, "Error getting profile dir", ex); - } - } - }); synchronized (this) { mContext = getContext(); mDatabasePerProfile = new HashMap(); diff --git a/mobile/android/base/db/TabsProvider.java b/mobile/android/base/db/TabsProvider.java index 14ba13d8f4a..1a15f150d65 100644 --- a/mobile/android/base/db/TabsProvider.java +++ b/mobile/android/base/db/TabsProvider.java @@ -289,17 +289,6 @@ public class TabsProvider extends ContentProvider { public boolean onCreate() { debug("Creating TabsProvider"); - ThreadUtils.postToBackgroundThread(new Runnable() { - @Override - public void run() { - // Kick this off early. It is synchronized so that other callers will wait - try { - GeckoProfile.get(getContext()).getDir(); - } catch (Exception ex) { - Log.e(LOGTAG, "Error getting profile dir", ex); - } - } - }); synchronized (this) { mContext = getContext(); mDatabasePerProfile = new HashMap();