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

Issue 10704240: Cleaned up OAuth refresh error handling. (Closed)

Created:
8 years, 5 months ago by Jamie
Modified:
8 years, 5 months ago
Reviewers:
simonmorris
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

This CL fixes a couple of related things: * The linked bug, caused by the use of try...catch to check for the "not signed in" case. * A couple of theoretical bugs caused by the use of a time-sensitive "is valid" method followed by an accessor that throws if it not valid. It also cleans up the interface by enforcing stricter use of @private. BUG=137613 TEST=Manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=147023

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixed non-200 response bug. #

Total comments: 2

Patch Set 3 : Fixed JSCompiler errors. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -31 lines) Patch
M remoting/webapp/oauth2.js View 1 2 10 chunks +21 lines, -31 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Jamie
https://chromiumcodereview.appspot.com/10704240/diff/1/remoting/webapp/oauth2.js File remoting/webapp/oauth2.js (left): https://chromiumcodereview.appspot.com/10704240/diff/1/remoting/webapp/oauth2.js#oldcode189 remoting/webapp/oauth2.js:189: remoting.OAuth2.prototype.getAccessToken_ = function() { Only used in two places, ...
8 years, 5 months ago (2012-07-17 00:25:37 UTC) #1
simonmorris
http://codereview.chromium.org/10704240/diff/1/remoting/webapp/oauth2.js File remoting/webapp/oauth2.js (right): http://codereview.chromium.org/10704240/diff/1/remoting/webapp/oauth2.js#newcode227 remoting/webapp/oauth2.js:227: onDone(xhr, tokens['access_token']); Is 'tokens' in scope here? What happens ...
8 years, 5 months ago (2012-07-17 00:52:50 UTC) #2
Jamie
ptal http://codereview.chromium.org/10704240/diff/1/remoting/webapp/oauth2.js File remoting/webapp/oauth2.js (right): http://codereview.chromium.org/10704240/diff/1/remoting/webapp/oauth2.js#newcode227 remoting/webapp/oauth2.js:227: onDone(xhr, tokens['access_token']); On 2012/07/17 00:52:50, simonmorris wrote: > ...
8 years, 5 months ago (2012-07-17 01:14:10 UTC) #3
simonmorris
http://codereview.chromium.org/10704240/diff/4001/remoting/webapp/oauth2.js File remoting/webapp/oauth2.js (right): http://codereview.chromium.org/10704240/diff/4001/remoting/webapp/oauth2.js#newcode194 remoting/webapp/oauth2.js:194: * @param {function(XMLHttpRequest, string): void} onDone Callback to invoke ...
8 years, 5 months ago (2012-07-17 01:25:32 UTC) #4
Jamie
ptal http://codereview.chromium.org/10704240/diff/4001/remoting/webapp/oauth2.js File remoting/webapp/oauth2.js (right): http://codereview.chromium.org/10704240/diff/4001/remoting/webapp/oauth2.js#newcode194 remoting/webapp/oauth2.js:194: * @param {function(XMLHttpRequest, string): void} onDone Callback to ...
8 years, 5 months ago (2012-07-17 01:51:57 UTC) #5
simonmorris
8 years, 5 months ago (2012-07-17 15:32:38 UTC) #6
lgtm

Powered by Google App Engine
This is Rietveld 408576698