mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-13 07:24:47 +00:00
Bug 826467 - Avoid persisting tabs to tabs.db if Sync is not setup r=bnicholson
This commit is contained in:
parent
daf3ec6697
commit
aaae29d6cb
@ -7,6 +7,7 @@ package org.mozilla.gecko;
|
||||
|
||||
import org.mozilla.gecko.db.BrowserDB;
|
||||
import org.mozilla.gecko.util.GeckoEventListener;
|
||||
import org.mozilla.gecko.sync.setup.SyncAccounts;
|
||||
|
||||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
@ -408,7 +409,9 @@ public class Tabs implements GeckoEventListener {
|
||||
final Iterable<Tab> tabs = getTabsInOrder();
|
||||
GeckoAppShell.getHandler().post(new Runnable() {
|
||||
public void run() {
|
||||
TabsAccessor.persistLocalTabs(getContentResolver(), tabs);
|
||||
boolean syncIsSetup = SyncAccounts.syncAccountsExist(mActivity);
|
||||
if (syncIsSetup)
|
||||
TabsAccessor.persistLocalTabs(getContentResolver(), tabs);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user