Bug 880599 - Remove GeckoProfile.get() from provider creation. r=gbrown

This commit is contained in:
Brian Nicholson 2013-06-10 15:37:39 -07:00
parent 179127068b
commit 07cc85ecb9
2 changed files with 0 additions and 22 deletions

View File

@ -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<String, DatabaseHelper>();

View File

@ -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<String, DatabaseHelper>();