зеркало из https://github.com/mozilla/gecko-dev.git
bug 930068 - GeckoView shouldn't require ACCOUNT access permission r=mfinkle
This commit is contained in:
Родитель
38b45aefdf
Коммит
5805bbab91
|
@ -71,10 +71,12 @@ public class Tabs implements GeckoEventListener {
|
||||||
private final Runnable mPersistTabsRunnable = new Runnable() {
|
private final Runnable mPersistTabsRunnable = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
boolean syncIsSetup = SyncAccounts.syncAccountsExist(getAppContext());
|
try {
|
||||||
if (syncIsSetup) {
|
boolean syncIsSetup = SyncAccounts.syncAccountsExist(getAppContext());
|
||||||
TabsAccessor.persistLocalTabs(getContentResolver(), getTabsInOrder());
|
if (syncIsSetup) {
|
||||||
}
|
TabsAccessor.persistLocalTabs(getContentResolver(), getTabsInOrder());
|
||||||
|
}
|
||||||
|
} catch (SecurityException se) {} // will fail without android.permission.GET_ACCOUNTS
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче