bug 930068 - GeckoView shouldn't require ACCOUNT access permission r=mfinkle

This commit is contained in:
Brad Lassey 2013-10-23 18:30:33 +02:00
Родитель 38b45aefdf
Коммит 5805bbab91
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -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
} }
}; };