Bug 709311 - Handle changed meta/global. r=rnewman, a=blocking-fennec

This commit is contained in:
Nick Alexander
2012-05-17 13:20:49 -07:00
parent 1048d1306e
commit 8ab7748c6a
9 changed files with 351 additions and 52 deletions

View File

@@ -28,6 +28,7 @@ import android.util.Log;
* updated bundle information.
*/
public class Synchronizer {
protected String configSyncID; // Used to pass syncID from load() back into save().
/**
* I translate the fine-grained feedback of a SynchronizerSessionDelegate into
@@ -109,8 +110,7 @@ public class Synchronizer {
}
public SynchronizerConfiguration save() {
String syncID = null; // TODO: syncID.
return new SynchronizerConfiguration(syncID, bundleA, bundleB);
return new SynchronizerConfiguration(configSyncID, bundleA, bundleB);
}
/**
@@ -123,6 +123,6 @@ public class Synchronizer {
public void load(SynchronizerConfiguration config) {
bundleA = config.remoteBundle;
bundleB = config.localBundle;
// TODO: syncID.
configSyncID = config.syncID;
}
}