Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Unified Diff: remoting/webapp/crd/js/oauth2.js

Issue 803653004: Update Chromoting to use /third_party/closure_compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Define Entry for browser_tests Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/crd/js/oauth2.js
diff --git a/remoting/webapp/crd/js/oauth2.js b/remoting/webapp/crd/js/oauth2.js
index d7498738cbc4b87069bc61878587661c69c350d8..52e12f8841480cf92bb92a8b2d7e274289e2e1cd 100644
--- a/remoting/webapp/crd/js/oauth2.js
+++ b/remoting/webapp/crd/js/oauth2.js
@@ -156,7 +156,7 @@ remoting.OAuth2.prototype.setAccessToken_ = function(token, expiration) {
*
* @private
* @return {{token: string, expiration: number}} The current access token, or
- * an invalid token if not authenticated.
+ * an invalid token if not authenticated.
*/
remoting.OAuth2.prototype.getAccessTokenInternal_ = function() {
if (!window.localStorage.getItem(this.KEY_ACCESS_TOKEN_)) {
@@ -167,7 +167,7 @@ remoting.OAuth2.prototype.getAccessTokenInternal_ = function() {
if (typeof accessToken == 'string') {
var result = base.jsonParseSafe(accessToken);
if (result && 'token' in result && 'expiration' in result) {
- return /** @type {{token: string, expiration: number}} */ result;
+ return /** @type {{token: string, expiration: number}} */(result);
}
}
console.log('Invalid access token stored.');

Powered by Google App Engine
This is Rietveld 408576698