зеркало из 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() {
|
||||
@Override
|
||||
public void run() {
|
||||
boolean syncIsSetup = SyncAccounts.syncAccountsExist(getAppContext());
|
||||
if (syncIsSetup) {
|
||||
TabsAccessor.persistLocalTabs(getContentResolver(), getTabsInOrder());
|
||||
}
|
||||
try {
|
||||
boolean syncIsSetup = SyncAccounts.syncAccountsExist(getAppContext());
|
||||
if (syncIsSetup) {
|
||||
TabsAccessor.persistLocalTabs(getContentResolver(), getTabsInOrder());
|
||||
}
|
||||
} catch (SecurityException se) {} // will fail without android.permission.GET_ACCOUNTS
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче