| Index: remoting/webapp/crd/js/oauth2_api.js
|
| diff --git a/remoting/webapp/crd/js/oauth2_api.js b/remoting/webapp/crd/js/oauth2_api.js
|
| index 8c49efece6e6066c97017dff2995a3c5833b49fe..56fa44f3e7d2a5dd0b1c2cea77f56a38818551fb 100644
|
| --- a/remoting/webapp/crd/js/oauth2_api.js
|
| +++ b/remoting/webapp/crd/js/oauth2_api.js
|
| @@ -74,8 +74,8 @@ remoting.OAuth2Api.refreshAccessToken = function(
|
| var onResponse = function(xhr) {
|
| if (xhr.status == 200) {
|
| try {
|
| - // Don't use jsonParseSafe here unless you move the definition out of
|
| - // remoting.js, otherwise this won't work from the OAuth trampoline.
|
| + // Don't use base.jsonParseSafe here unless you also include base.js,
|
| + // otherwise this won't work from the OAuth trampoline.
|
| // TODO(jamiewalch): Fix this once we're no longer using the trampoline.
|
| var tokens = JSON.parse(xhr.responseText);
|
| onDone(tokens['access_token'], tokens['expires_in']);
|
| @@ -122,8 +122,8 @@ remoting.OAuth2Api.exchangeCodeForTokens = function(
|
| var onResponse = function(xhr) {
|
| if (xhr.status == 200) {
|
| try {
|
| - // Don't use jsonParseSafe here unless you move the definition out of
|
| - // remoting.js, otherwise this won't work from the OAuth trampoline.
|
| + // Don't use base.jsonParseSafe here unless you also include base.js,
|
| + // otherwise this won't work from the OAuth trampoline.
|
| // TODO(jamiewalch): Fix this once we're no longer using the trampoline.
|
| var tokens = JSON.parse(xhr.responseText);
|
| onDone(tokens['refresh_token'],
|
|
|