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

Issue 5814005: Minimize login prompts (Closed)

Created:
10 years ago by asanka (google)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, cbentzel+watch_chromium.org, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Minimize login prompts LoginHandler can receive useful notifications from the same NavigationController. Excluding them can trigger spurious login dialogs for the same target. Also, re-order authentication dialog cancellations to prevent unnecessary dialogs from being shown to the user. BUG=51570 TEST=LoginPromptBrowserTest.* Contributed by: asanka@google.com Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=70509

Patch Set 1 #

Patch Set 2 : git cl presubmit #

Patch Set 3 : Add browsertest #

Total comments: 32

Patch Set 4 : Fix issues with browsertest and update testserver to use urlparse #

Patch Set 5 : Simplify cleanup of LoginPromptBrowserTestObserver #

Total comments: 12

Patch Set 6 : Update testserver to serve a .gif when asked for one and address coding convention issues #

Patch Set 7 : Use EXPECT_TRUE instead of EXPECT_NE when comparing iterators #

Patch Set 8 : Fix race condition on Mac #

Total comments: 2

Patch Set 9 : LoginHandler::SetAuth() expects to be called on the UI thread #

Total comments: 6

Patch Set 10 : Add const and fix braces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+460 lines, -34 lines) Patch
M chrome/browser/ui/login/login_prompt.h View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/ui/login/login_prompt.cc View 1 2 3 4 5 6 7 8 9 9 chunks +41 lines, -24 lines 0 comments Download
A chrome/browser/ui/login/login_prompt_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +346 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/login/multi_realm.html View 1 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/test/data/login/single_realm.html View 1 1 chunk +16 lines, -0 lines 0 comments Download
M net/tools/testserver/testserver.py View 1 2 3 4 5 6 3 chunks +31 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
asanka (google)
Please review.
10 years ago (2010-12-14 19:46:39 UTC) #1
cbentzel
On 2010/12/14 19:46:39, asanka wrote: > Please review. Please add a login_prompt_uitest for this case. ...
10 years ago (2010-12-14 19:54:02 UTC) #2
asanka (google)
Added new browsertest.
10 years ago (2010-12-17 16:34:22 UTC) #3
cbentzel
tonyg: I added you for the LoginPrompt change. phajdan.jr: I added you for test-fu, mainly ...
10 years ago (2010-12-17 19:22:56 UTC) #4
asanka (google)
Coding convention fixes for the browsertest and update testserver.py to use urlparse. http://codereview.chromium.org/5814005/diff/7001/chrome/browser/ui/login/login_prompt.cc File chrome/browser/ui/login/login_prompt.cc ...
10 years ago (2010-12-17 21:35:35 UTC) #5
cbentzel
LGTM - with the exception of the testserver.py bug. Since I'm on vacation next week, ...
10 years ago (2010-12-17 22:02:55 UTC) #6
asanka (google)
Changed testserver to write out a .gif file for the placeholder test images. http://codereview.chromium.org/5814005/diff/14001/chrome/browser/ui/login/login_prompt_browsertest.cc File ...
10 years ago (2010-12-20 17:44:08 UTC) #7
asanka (google)
Adding ahendrickson.
10 years ago (2010-12-20 20:21:37 UTC) #8
cbentzel
LGTM
10 years ago (2010-12-21 02:53:53 UTC) #9
ahendrickson
LGTM
10 years ago (2010-12-21 16:40:38 UTC) #10
ahendrickson
Working on committing this CL for Asanka.
10 years ago (2010-12-21 17:46:23 UTC) #11
asanka (google)
This last set of changes were made to address a race that caused unnecessary dialogs ...
9 years, 12 months ago (2010-12-23 21:48:09 UTC) #12
cbentzel
http://codereview.chromium.org/5814005/diff/34001/chrome/browser/ui/login/login_prompt.cc File chrome/browser/ui/login/login_prompt.cc (right): http://codereview.chromium.org/5814005/diff/34001/chrome/browser/ui/login/login_prompt.cc#newcode135 chrome/browser/ui/login/login_prompt.cc:135: if (BrowserThread::CurrentlyOn(BrowserThread::UI)) I think this is always called from ...
9 years, 11 months ago (2011-01-04 16:09:54 UTC) #13
cbentzel
Also, this is an LGTM provided you change SetAuth/CancelAuth to expect to be called on ...
9 years, 11 months ago (2011-01-04 19:46:49 UTC) #14
asanka (google)
Changed SetAuth() to expect being called from the UI thread and updated the description. http://codereview.chromium.org/5814005/diff/34001/chrome/browser/ui/login/login_prompt.cc ...
9 years, 11 months ago (2011-01-04 22:34:49 UTC) #15
cbentzel
LGTM Let me know when you make these small tweaks and I will patch and ...
9 years, 11 months ago (2011-01-05 13:13:51 UTC) #16
asanka (google)
Added const for getters and added braces for multi-line if-else. http://codereview.chromium.org/5814005/diff/39001/chrome/browser/ui/login/login_prompt.cc File chrome/browser/ui/login/login_prompt.cc (right): http://codereview.chromium.org/5814005/diff/39001/chrome/browser/ui/login/login_prompt.cc#newcode155 ...
9 years, 11 months ago (2011-01-05 14:29:11 UTC) #17
cbentzel
9 years, 11 months ago (2011-01-05 14:32:04 UTC) #18
LGTM.

I'll take care of landing this.

Powered by Google App Engine
This is Rietveld 408576698