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

Issue 9694022: Made existing user login working for linux workstation debug use case: (Closed)

Created:
8 years, 9 months ago by zel
Modified:
8 years, 9 months ago
CC:
satorux1, chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Made existing user login working for linux workstation debug use case: - Resolved several threading issues in and around ParallelAuthenticator. - Made cryptohome async calls respond on the calling thread. BUG=chromium-os:27689 BUG=make sure that you can re-login without crashing to an an existing account on linux workstation. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126760

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 11

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -180 lines) Patch
M chrome/browser/chromeos/cryptohome/async_method_caller.cc View 1 2 3 4 4 chunks +19 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/auth_attempt_state.cc View 1 2 3 4 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/login/online_attempt.h View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/online_attempt.cc View 1 2 3 4 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/online_attempt_host.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/online_attempt_host.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/online_attempt_unittest.cc View 1 2 3 4 10 chunks +29 lines, -28 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator.h View 1 2 3 4 5 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator.cc View 1 2 3 4 13 chunks +30 lines, -39 lines 0 comments Download
M chrome/browser/chromeos/login/parallel_authenticator_unittest.cc View 1 2 3 4 23 chunks +41 lines, -77 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
zel
8 years, 9 months ago (2012-03-13 04:58:34 UTC) #1
Nikita (slow)
lgtm https://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chromeos/login/online_attempt.cc File chrome/browser/chromeos/login/online_attempt.cc (right): https://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chromeos/login/online_attempt.cc#newcode1 chrome/browser/chromeos/login/online_attempt.cc:1: // Copyright (c) 2012 The Chromium Authors. All ...
8 years, 9 months ago (2012-03-13 14:42:07 UTC) #2
Chris Masone
When I originally did this, I moved all this work onto the IO thread on ...
8 years, 9 months ago (2012-03-13 15:35:08 UTC) #3
Nikita (slow)
http://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chromeos/login/online_attempt.cc File chrome/browser/chromeos/login/online_attempt.cc (right): http://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chromeos/login/online_attempt.cc#newcode75 chrome/browser/chromeos/login/online_attempt.cc:75: BrowserThread::UI, FROM_HERE, On 2012/03/13 15:35:09, Chris Masone wrote: > ...
8 years, 9 months ago (2012-03-13 15:40:10 UTC) #4
Chris Masone
I see now that the network stuff will not block. So, LGTM with a few ...
8 years, 9 months ago (2012-03-13 18:28:07 UTC) #5
zel
8 years, 9 months ago (2012-03-13 18:47:21 UTC) #6
https://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chrom...
File chrome/browser/chromeos/login/auth_attempt_state.cc (right):

https://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chrom...
chrome/browser/chromeos/login/auth_attempt_state.cc:73:
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
On 2012/03/13 15:35:09, Chris Masone wrote:
> I thought we always wanted to bend over backwards to keep things off the UI
> thread

We are not doing anything blocking on UI thread. These are just bookkeeping
operations that which it belong on UI thread.

https://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chrom...
File chrome/browser/chromeos/login/online_attempt.cc (right):

https://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chrom...
chrome/browser/chromeos/login/online_attempt.cc:1: // Copyright (c) 2012 The
Chromium Authors. All rights reserved.
On 2012/03/13 14:42:07, Nikita Kostylev wrote:
> With changes in OnlineAttempt it seems that my CL has to be reverted:
> http://codereview.chromium.org/9566006/

Yes.

https://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chrom...
chrome/browser/chromeos/login/online_attempt.cc:75: BrowserThread::UI,
FROM_HERE,
On 2012/03/13 15:40:11, Nikita Kostylev wrote:
> On 2012/03/13 15:35:09, Chris Masone wrote:
> > Isn't this going to make network traffic block the UI thread?
> 
> URLFetcherImpl::Start() will actually schedule to do all of its work on IO
> thread.

URLFetcher can't be used on non-UI thread and it was used from IO thread here
originally - that's what started this change.

https://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chrom...
File chrome/browser/chromeos/login/online_attempt_host.cc (right):

https://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chrom...
chrome/browser/chromeos/login/online_attempt_host.cc:61:
content::BrowserThread::PostTask(
On 2012/03/13 14:42:07, Nikita Kostylev wrote:
> This could be removed and ResolveOnUIThread code moved here.
> See http://codereview.chromium.org/9566006/

Yes, but I don't want to change the flow of callbacks here with this CL. I want
to keep this as close as possible to the existing working code and do another
round of optimization in another CL.

https://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chrom...
File chrome/browser/chromeos/login/online_attempt_unittest.cc (right):

https://chromiumcodereview.appspot.com/9694022/diff/4005/chrome/browser/chrom...
chrome/browser/chromeos/login/online_attempt_unittest.cc:117: // Force IO thread
to finish tasks so I can verify |state_|.
On 2012/03/13 15:35:09, Chris Masone wrote:
> Comment should be updated, at least

Done.

Powered by Google App Engine
This is Rietveld 408576698