bug 930068 - GeckoView shouldn't require ACCOUNT access permission r=mfinkle
This commit is contained in:
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user