Chromium Code Reviews

Issue 2883031: Kerberos authentication backoff cleanup. (Closed)

Created:
10 years, 5 months ago by ahendrickson
Modified:
9 years, 7 months ago
Reviewers:
cbentzel, eroman
CC:
chromium-reviews, pam+watch_chromium.org, John Grabowski, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Kerberos authentication backoff cleanup. BUG=33033 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=53207

Patch Set 1 #

Patch Set 2 : Merged with trunk. #

Patch Set 3 : Added unit tests. #

Patch Set 4 : Style fixes. #

Total comments: 14

Patch Set 5 : Refactored the unit tests. #

Unified diffs Side-by-side diffs Stats (+78 lines, -5 lines)
M net/http/http_auth_controller.cc View 2 chunks +2 lines, -2 lines 0 comments
M net/http/http_auth_handler_negotiate_unittest.cc View 11 chunks +76 lines, -3 lines 0 comments

Messages

Total messages: 8 (0 generated)
ahendrickson
These minor changes are per Eric's comments in http://codereview.chromium.org/3010010/show.
10 years, 5 months ago (2010-07-20 18:24:57 UTC) #1
eroman
LGTM, thanks! Also please add a unittest :)
10 years, 5 months ago (2010-07-20 20:57:26 UTC) #2
cbentzel
Ditto. On Tue, Jul 20, 2010 at 4:57 PM, <eroman@chromium.org> wrote: > LGTM, thanks! > ...
10 years, 5 months ago (2010-07-20 21:12:16 UTC) #3
ahendrickson
Unit tests are in.
10 years, 5 months ago (2010-07-21 15:15:01 UTC) #4
cbentzel
Mostly nits, otherwise LGTM http://codereview.chromium.org/2883031/diff/11001/12001 File net/http/http_auth_controller.cc (right): http://codereview.chromium.org/2883031/diff/11001/12001#newcode91 net/http/http_auth_controller.cc:91: else Nit: most of the ...
10 years, 5 months ago (2010-07-21 15:41:57 UTC) #5
ahendrickson
http://codereview.chromium.org/2883031/diff/11001/12001 File net/http/http_auth_controller.cc (right): http://codereview.chromium.org/2883031/diff/11001/12001#newcode91 net/http/http_auth_controller.cc:91: else I think I'll get style complaints if I ...
10 years, 5 months ago (2010-07-21 16:08:46 UTC) #6
cbentzel
LGTM Thanks for adding unit tests at this level. I'd also like to see unit ...
10 years, 5 months ago (2010-07-21 17:17:59 UTC) #7
eroman
10 years, 5 months ago (2010-07-21 18:29:57 UTC) #8
LGTM.

You can also expand the CL description to mention addition of unittest.

http://codereview.chromium.org/2883031/diff/11001/12001
File net/http/http_auth_controller.cc (right):

http://codereview.chromium.org/2883031/diff/11001/12001#newcode91
net/http/http_auth_controller.cc:91: else
On 2010/07/21 17:18:00, cbentzel wrote:
> On 2010/07/21 16:08:46, ahendrickson wrote:
> > I think I'll get style complaints if I put braces here.
> 
> Eric: Do you have a preference? I know if-without-else are braceless, but I
> think most of the if/else code I've seen in chrome uses braces.

The style guide doesn't have a hard rule on this, so either way is acceptable.

I personally like putting curly braces around it, but I have had reviewers ask
me to change this at times. Whereas chrome is consistent in omitting curlies on
single-line ifs, there isn't an obvious style for if-else so you can get away
with whatever your reviewer like likes :)

Powered by Google App Engine