Closed Bug 780279 Opened 12 years ago Closed 6 years ago

Request a sync after persisting local tabs

Categories

(Firefox for Android Graveyard :: Data Providers, defect, P2)

ARM
Android
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: Margaret, Assigned: nalexander)

References

()

Details

Attachments

(1 file)

See bug 730039 comment 24. We just want to split off this functionality from the patch in that bug.
No longer blocks: 730039
Depends on: 730039
Very soon you'll be able to do something like:

  Account[] accounts = null;
  try {
    accounts = SyncAccounts.syncAccounts(context);
  } catch (org.mozilla.gecko.sync.CredentialException e) {
    // ...
  }

in addition to the facilities that SyncAccounts already provides.

(See <https://github.com/mozilla-services/android-sync/pull/239>.)
Assignee: nobody → nalexander
Needs Sync convenience method from https://github.com/mozilla-services/android-sync/pull/244 as well.
STR:

1. pair Android device to existing Sync account.
2. verify Sync is working.
3. in Fennec, add several tabs (3 or so works for me) and then delete some of them.
4. verify that a sync was requested by checking the logs for:

...
I FxSync(9158)                fennec_ncalexan :: SyncAdapter :: Forced sync: overruling remaining backoff of 83096128ms.
...
I FxSync(9158)                fennec_ncalexan :: Utils :: Asked to sync 'clients, tabs' and to skip ''.
...

NOTE: until Bug 728612 lands, you won't actually see outgoing tabs.  I implemented this ticket first to make it easier to test 728612.
Blocks: 849072
This is no longer relevant.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WORKSFORME
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: