mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1139946 - Generalize audience across SyncAdapter instances. r=rnewman
This commit is contained in:
parent
d31b14620c
commit
8ead3be5da
@ -270,10 +270,6 @@ public class AndroidFxAccount {
|
||||
return accountManager.getUserData(account, ACCOUNT_KEY_IDP_SERVER);
|
||||
}
|
||||
|
||||
public String getAudience() {
|
||||
return accountManager.getUserData(account, ACCOUNT_KEY_AUDIENCE);
|
||||
}
|
||||
|
||||
public String getTokenServerURI() {
|
||||
return accountManager.getUserData(account, ACCOUNT_KEY_TOKEN_SERVER);
|
||||
}
|
||||
@ -402,7 +398,6 @@ public class AndroidFxAccount {
|
||||
userdata.putString(ACCOUNT_KEY_ACCOUNT_VERSION, "" + CURRENT_ACCOUNT_VERSION);
|
||||
userdata.putString(ACCOUNT_KEY_IDP_SERVER, idpServerURI);
|
||||
userdata.putString(ACCOUNT_KEY_TOKEN_SERVER, tokenServerURI);
|
||||
userdata.putString(ACCOUNT_KEY_AUDIENCE, FxAccountUtils.getAudienceForURL(tokenServerURI));
|
||||
userdata.putString(ACCOUNT_KEY_PROFILE, profile);
|
||||
|
||||
if (bundle == null) {
|
||||
|
@ -456,10 +456,10 @@ public class FxAccountSyncAdapter extends AbstractThreadedSyncAdapter {
|
||||
// and extend the background delay even further into the future.
|
||||
schedulePolicy.configureBackoffMillisBeforeSyncing(rateLimitBackoffHandler, backgroundBackoffHandler);
|
||||
|
||||
final String audience = fxAccount.getAudience();
|
||||
final String authServerEndpoint = fxAccount.getAccountServerURI();
|
||||
final String tokenServerEndpoint = fxAccount.getTokenServerURI();
|
||||
final URI tokenServerEndpointURI = new URI(tokenServerEndpoint);
|
||||
final String audience = FxAccountUtils.getAudienceForURL(tokenServerEndpoint);
|
||||
|
||||
// TODO: why doesn't the loginPolicy extract the audience from the account?
|
||||
final FxAccountClient client = new FxAccountClient20(authServerEndpoint, executor);
|
||||
|
Loading…
Reference in New Issue
Block a user