Bug 1497977 p4 - Trigger an upload of our own client record after FxA device registration. r=nalexander

Depends on D8609

Differential Revision: https://phabricator.services.mozilla.com/D8610

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Edouard Oger 2018-10-17 18:23:09 +00:00
parent d2b74ef433
commit f21637ae6a

View File

@ -242,6 +242,8 @@ public class FxAccountDeviceRegistrator implements BundleEventListener {
Logger.pii(LOG_TAG, "Registered device ID: " + result.id);
Log.i(LOG_TAG, "Setting DEVICE_REGISTRATION_VERSION to " + DEVICE_REGISTRATION_VERSION);
fxAccount.setFxAUserData(result.id, DEVICE_REGISTRATION_VERSION, System.currentTimeMillis());
// Ask for a re-upload of the local client record to account for the FxA device ID change.
fxAccount.requestImmediateSync(new String[] { "clients" }, null, true);
}
});
}