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

Issue 2847080: Make login cancel logic load localaccount file before attempting offline login (Closed)

Created:
10 years, 5 months ago by Chris Masone
Modified:
9 years, 7 months ago
CC:
chromium-reviews, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, ben+cc_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Make login cancel logic load localaccount file before attempting offline login BUG=chromium-os:5169 TEST=unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53913

Patch Set 1 #

Patch Set 2 : Added unit tests #

Patch Set 3 : moar tests #

Total comments: 3

Patch Set 4 : fix check_deps failure, comment per phajdan #

Total comments: 17
Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -20 lines) Patch
M chrome/browser/chromeos/login/google_authenticator.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/google_authenticator_unittest.cc View 2 3 7 chunks +123 lines, -17 lines 17 comments Download
M chrome/common/net/gaia/gaia_authenticator2_unittest.h View 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/net/gaia/gaia_authenticator2_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Chris Masone
10 years, 5 months ago (2010-07-28 01:05:26 UTC) #1
Paweł Hajdan Jr.
Drive-by with a test comment. http://codereview.chromium.org/2847080/diff/5001/6004 File chrome/common/net/gaia/gaia_authenticator2_unittest.h (right): http://codereview.chromium.org/2847080/diff/5001/6004#newcode74 chrome/common/net/gaia/gaia_authenticator2_unittest.h:74: sleeper_->DelayedCompleteFetch(success_, url_, delegate(), 500); ...
10 years, 5 months ago (2010-07-28 01:12:24 UTC) #2
Chris Masone
http://codereview.chromium.org/2847080/diff/5001/6004 File chrome/common/net/gaia/gaia_authenticator2_unittest.h (right): http://codereview.chromium.org/2847080/diff/5001/6004#newcode74 chrome/common/net/gaia/gaia_authenticator2_unittest.h:74: sleeper_->DelayedCompleteFetch(success_, url_, delegate(), 500); On 2010/07/28 01:12:24, Paweł Hajdan ...
10 years, 5 months ago (2010-07-28 01:15:20 UTC) #3
Paweł Hajdan Jr.
http://codereview.chromium.org/2847080/diff/5001/6004 File chrome/common/net/gaia/gaia_authenticator2_unittest.h (right): http://codereview.chromium.org/2847080/diff/5001/6004#newcode74 chrome/common/net/gaia/gaia_authenticator2_unittest.h:74: sleeper_->DelayedCompleteFetch(success_, url_, delegate(), 500); On 2010/07/28 01:15:20, cmasone wrote: ...
10 years, 5 months ago (2010-07-28 01:16:55 UTC) #4
Chris Masone
On Tue, Jul 27, 2010 at 6:16 PM, <phajdan.jr@chromium.org> wrote: > > http://codereview.chromium.org/2847080/diff/5001/6004 > File ...
10 years, 5 months ago (2010-07-28 01:18:31 UTC) #5
Chris Masone
PTAL :-) On 2010/07/28 01:18:31, cmasone wrote: > On Tue, Jul 27, 2010 at 6:16 ...
10 years, 5 months ago (2010-07-28 03:29:06 UTC) #6
DaveMoore
It's a bit convoluted but after an IM discussion I think it makes sense. LGTM ...
10 years, 5 months ago (2010-07-28 04:44:33 UTC) #7
Chris Masone
http://codereview.chromium.org/2847080/diff/11001/12002 File chrome/browser/chromeos/login/google_authenticator_unittest.cc (right): http://codereview.chromium.org/2847080/diff/11001/12002#newcode58 chrome/browser/chromeos/login/google_authenticator_unittest.cc:58: const GURL& url, On 2010/07/28 04:44:33, davemoore wrote: > ...
10 years, 5 months ago (2010-07-28 05:55:52 UTC) #8
oshima
thank you for fix, and sorry for jumping in late. just nits and you may ...
10 years, 5 months ago (2010-07-28 08:00:10 UTC) #9
Chris Masone
10 years, 4 months ago (2010-07-28 15:25:29 UTC) #10
working on a slightly bigger change that cleans up more of this stuff to make it
simpler.  Will send along to oshima this AM.

http://codereview.chromium.org/2847080/diff/11001/12002
File chrome/browser/chromeos/login/google_authenticator_unittest.cc (right):

http://codereview.chromium.org/2847080/diff/11001/12002#newcode642
chrome/browser/chromeos/login/google_authenticator_unittest.cc:642: MessageLoop
message_loop(MessageLoop::TYPE_UI);
On 2010/07/28 08:00:10, oshima wrote:
> just for my understanding. what's the difference?

You can't call Run() on a MessageLoopForUI, only RunAllPending().

Powered by Google App Engine
This is Rietveld 408576698