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
parent c085a17ac6
commit c88c5f9c09

View File

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