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
179127068b
commit
07cc85ecb9
@ -2148,17 +2148,6 @@ public class BrowserProvider extends ContentProvider {
|
|||||||
public boolean onCreate() {
|
public boolean onCreate() {
|
||||||
debug("Creating BrowserProvider");
|
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) {
|
synchronized (this) {
|
||||||
mContext = getContext();
|
mContext = getContext();
|
||||||
mDatabasePerProfile = new HashMap<String, DatabaseHelper>();
|
mDatabasePerProfile = new HashMap<String, DatabaseHelper>();
|
||||||
|
@ -289,17 +289,6 @@ public class TabsProvider extends ContentProvider {
|
|||||||
public boolean onCreate() {
|
public boolean onCreate() {
|
||||||
debug("Creating TabsProvider");
|
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) {
|
synchronized (this) {
|
||||||
mContext = getContext();
|
mContext = getContext();
|
||||||
mDatabasePerProfile = new HashMap<String, DatabaseHelper>();
|
mDatabasePerProfile = new HashMap<String, DatabaseHelper>();
|
||||||
|
Loading…
Reference in New Issue
Block a user