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

Issue 6027012: Fix so that login errors are shown from login/oobe screens.... (Closed)

Created:
9 years, 11 months ago by Charlie Lee
Modified:
9 years, 7 months ago
Reviewers:
stevenjb
CC:
chromium-reviews, davemoore+watch_chromium.org
Visibility:
Public.

Description

Fix so that login errors are shown from login/oobe screens. Split functionality of check for login failures to NetworkLoginObserver from NetworkMessageObserver. BUG=chromium-os:8251 TEST=manually make sure the login error dialog pops up when you enter bad password. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71468

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 16

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -48 lines) Patch
M chrome/browser/chromeos/cros/network_library.cc View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/background_view.h View 1 2 3 4 5 6 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/background_view.cc View 1 2 3 4 5 6 4 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 5 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/mock_authenticator.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/network_login_observer.h View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/network_login_observer.cc View 1 2 3 4 5 6 1 chunk +102 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/network_message_observer.h View 1 2 3 4 5 6 3 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/network_message_observer.cc View 1 2 3 4 5 6 7 chunks +1 line, -42 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Charlie Lee
9 years, 11 months ago (2011-01-11 01:45:43 UTC) #1
stevenjb
http://codereview.chromium.org/6027012/diff/27001/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/6027012/diff/27001/chrome/browser/chromeos/cros/network_library.cc#newcode1869 chrome/browser/chromeos/cros/network_library.cc:1869: NetworkLoginObserver* network_login_observer_; Maybe use scoped_ptr<NetworkLoginObserver>? http://codereview.chromium.org/6027012/diff/27001/chrome/browser/chromeos/network_login_observer.cc File chrome/browser/chromeos/network_login_observer.cc (right): ...
9 years, 11 months ago (2011-01-11 20:53:52 UTC) #2
Charlie Lee
http://codereview.chromium.org/6027012/diff/27001/chrome/browser/chromeos/cros/network_library.cc File chrome/browser/chromeos/cros/network_library.cc (right): http://codereview.chromium.org/6027012/diff/27001/chrome/browser/chromeos/cros/network_library.cc#newcode1869 chrome/browser/chromeos/cros/network_library.cc:1869: NetworkLoginObserver* network_login_observer_; On 2011/01/11 20:53:52, Steven Bennetts wrote: > ...
9 years, 11 months ago (2011-01-11 22:52:06 UTC) #3
stevenjb
9 years, 11 months ago (2011-01-12 01:34:52 UTC) #4
LGTM if we decide we want to show a notification along with the dialog on a bad
passphrase error.

http://codereview.chromium.org/6027012/diff/27001/chrome/browser/chromeos/net...
File chrome/browser/chromeos/network_login_observer.cc (right):

http://codereview.chromium.org/6027012/diff/27001/chrome/browser/chromeos/net...
chrome/browser/chromeos/network_login_observer.cc:34: if (browser &&
browser->type() != Browser::TYPE_NORMAL) {
I forgot to add that we would need to use ProfileManager::GetDefaultProfile()
instead of b->profile().

I searched through the code and it looks like this is something we ought to
clean up consistently throughout, so I am fine with leaving it as-is for now.


On 2011/01/11 22:52:06, Charlie Lee wrote:
> FindBrowserWithType takes in a profile which we get from the browser object.
So
> we can't call it without getting an initial browser.
> 
> I copied this code from elsewhere, so i think it's the right way to do it.
> 
> On 2011/01/11 20:53:52, Steven Bennetts wrote:
> > FindBrowserWithType() searches in order of last activation, so we should be
> able
> > to skip the GetLastActive() call and always use FindBrowserWithType().
>

http://codereview.chromium.org/6027012/diff/27001/chrome/browser/chromeos/net...
File chrome/browser/chromeos/network_message_observer.cc (left):

http://codereview.chromium.org/6027012/diff/27001/chrome/browser/chromeos/net...
chrome/browser/chromeos/network_message_observer.cc:129: continue;
Ah, right, OK.

On 2011/01/11 22:52:06, Charlie Lee wrote:
> No, because wifi_old->connecting() below means that it wasn't previously
failed
> 
> On 2011/01/11 20:53:52, Steven Bennetts wrote:
> > Don't we still need this check?
>

Powered by Google App Engine
This is Rietveld 408576698