mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 880599 - Remove GeckoProfile.get() from provider creation. r=gbrown
This commit is contained in:
parent
b55572883a
commit
0337ae9dc3
@ -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>();
|
||||
|
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user