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

Issue 8340026: Use AuthCredentials throughout the network stack instead of username/password. (Closed)

Created:
9 years, 1 month ago by cbentzel
Modified:
9 years, 1 month ago
Reviewers:
asanka
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Use AuthCredentials throughout the network stack instead of username/password. This is a refactor only - no behavior change should happen. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107766

Patch Set 1 #

Patch Set 2 : http_auth_sspi_win_unittest #

Patch Set 3 : mac compile fix #

Total comments: 9

Patch Set 4 : Reduce password zapping #

Total comments: 18

Patch Set 5 : Remove string16 includes #

Patch Set 6 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+565 lines, -601 lines) Patch
M chrome/browser/extensions/extension_webrequest_api.cc View 1 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/login/login_prompt.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/base/auth.h View 1 2 3 1 chunk +20 lines, -2 lines 0 comments Download
M net/base/auth.cc View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download
A net/base/zap.h View 1 chunk +28 lines, -0 lines 0 comments Download
A net/base/zap.cc View 1 chunk +23 lines, -0 lines 0 comments Download
M net/ftp/ftp_auth_cache.h View 1 2 3 4 5 3 chunks +8 lines, -13 lines 0 comments Download
M net/ftp/ftp_auth_cache.cc View 3 chunks +8 lines, -13 lines 0 comments Download
M net/ftp/ftp_auth_cache_unittest.cc View 7 chunks +26 lines, -23 lines 0 comments Download
M net/ftp/ftp_network_transaction.h View 3 chunks +3 lines, -5 lines 0 comments Download
M net/ftp/ftp_network_transaction.cc View 5 chunks +13 lines, -10 lines 0 comments Download
M net/ftp/ftp_network_transaction_unittest.cc View 2 chunks +9 lines, -6 lines 0 comments Download
M net/ftp/ftp_transaction.h View 1 2 3 4 3 chunks +2 lines, -3 lines 0 comments Download
M net/http/http_auth.h View 2 chunks +2 lines, -3 lines 0 comments Download
M net/http/http_auth_cache.h View 1 2 3 4 5 chunks +9 lines, -20 lines 0 comments Download
M net/http/http_auth_cache.cc View 4 chunks +5 lines, -8 lines 0 comments Download
M net/http/http_auth_cache_unittest.cc View 15 chunks +76 lines, -57 lines 0 comments Download
M net/http/http_auth_controller.h View 1 2 3 4 5 6 chunks +6 lines, -7 lines 0 comments Download
M net/http/http_auth_controller.cc View 1 2 3 4 5 8 chunks +19 lines, -28 lines 0 comments Download
M net/http/http_auth_controller_unittest.cc View 4 chunks +7 lines, -7 lines 0 comments Download
M net/http/http_auth_gssapi_posix.h View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M net/http/http_auth_gssapi_posix.cc View 1 chunk +1 line, -3 lines 0 comments Download
M net/http/http_auth_gssapi_posix_unittest.cc View 3 chunks +3 lines, -6 lines 0 comments Download
M net/http/http_auth_handler.h View 1 2 3 4 5 3 chunks +11 lines, -12 lines 0 comments Download
M net/http/http_auth_handler.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M net/http/http_auth_handler_basic.h View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M net/http/http_auth_handler_basic.cc View 1 chunk +6 lines, -4 lines 0 comments Download
M net/http/http_auth_handler_basic_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M net/http/http_auth_handler_digest.h View 1 2 3 4 3 chunks +3 lines, -7 lines 0 comments Download
M net/http/http_auth_handler_digest.cc View 6 chunks +10 lines, -14 lines 0 comments Download
M net/http/http_auth_handler_digest_unittest.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M net/http/http_auth_handler_mock.h View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M net/http/http_auth_handler_mock.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M net/http/http_auth_handler_negotiate.h View 1 2 3 4 3 chunks +3 lines, -6 lines 0 comments Download
M net/http/http_auth_handler_negotiate.cc View 3 chunks +9 lines, -14 lines 0 comments Download
M net/http/http_auth_handler_negotiate_unittest.cc View 7 chunks +7 lines, -11 lines 0 comments Download
M net/http/http_auth_handler_ntlm.h View 2 chunks +2 lines, -4 lines 0 comments Download
M net/http/http_auth_handler_ntlm.cc View 1 2 3 4 5 2 chunks +10 lines, -12 lines 0 comments Download
M net/http/http_auth_handler_ntlm_portable.cc View 1 2 3 4 chunks +5 lines, -18 lines 0 comments Download
M net/http/http_auth_handler_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M net/http/http_auth_sspi_win.h View 1 2 3 4 5 2 chunks +4 lines, -6 lines 0 comments Download
M net/http/http_auth_sspi_win.cc View 1 2 chunks +6 lines, -11 lines 0 comments Download
M net/http/http_auth_sspi_win_unittest.cc View 1 3 chunks +3 lines, -6 lines 0 comments Download
M net/http/http_cache_transaction.h View 1 2 3 4 3 chunks +2 lines, -5 lines 0 comments Download
M net/http/http_cache_transaction.cc View 3 chunks +4 lines, -6 lines 0 comments Download
M net/http/http_network_transaction.h View 1 chunk +2 lines, -3 lines 0 comments Download
M net/http/http_network_transaction.cc View 3 chunks +4 lines, -6 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 36 chunks +39 lines, -36 lines 0 comments Download
M net/http/http_proxy_client_socket_pool_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/http/http_stream_factory.h View 2 chunks +3 lines, -2 lines 0 comments Download
M net/http/http_stream_factory_impl_job.h View 1 chunk +1 line, -2 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_stream_factory_impl_request.h View 1 chunk +1 line, -2 lines 0 comments Download
M net/http/http_stream_factory_impl_request.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M net/http/http_transaction.h View 2 chunks +2 lines, -3 lines 0 comments Download
M net/http/http_transaction_unittest.h View 1 chunk +16 lines, -14 lines 0 comments Download
M net/http/http_transaction_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M net/net.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M net/socket/ssl_client_socket_pool_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/socket_stream/socket_stream.h View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M net/socket_stream/socket_stream.cc View 7 chunks +8 lines, -15 lines 0 comments Download
M net/socket_stream/socket_stream_job.h View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M net/socket_stream/socket_stream_job.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M net/socket_stream/socket_stream_unittest.cc View 3 chunks +8 lines, -11 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M net/spdy/spdy_proxy_client_socket_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/url_request/url_request.h View 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M net/url_request/url_request_ftp_job.h View 1 2 3 4 2 chunks +7 lines, -9 lines 0 comments Download
M net/url_request/url_request_ftp_job.cc View 4 chunks +6 lines, -12 lines 0 comments Download
M net/url_request/url_request_http_job.h View 1 2 3 4 4 chunks +3 lines, -8 lines 0 comments Download
M net/url_request/url_request_http_job.cc View 6 chunks +8 lines, -12 lines 0 comments Download
M net/url_request/url_request_job.h View 1 2 3 4 3 chunks +2 lines, -3 lines 0 comments Download
M net/url_request/url_request_job.cc View 1 chunk +1 line, -2 lines 0 comments Download
M net/url_request/url_request_test_util.h View 2 chunks +4 lines, -5 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 10 chunks +10 lines, -23 lines 0 comments Download
M net/websockets/websocket_job.h View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M net/websockets/websocket_job.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M net/websockets/websocket_job_unittest.cc View 1 2 1 chunk +7 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
cbentzel
9 years, 1 month ago (2011-10-27 16:05:45 UTC) #1
asanka
http://codereview.chromium.org/8340026/diff/1081/chrome/browser/ui/login/login_prompt.cc File chrome/browser/ui/login/login_prompt.cc (right): http://codereview.chromium.org/8340026/diff/1081/chrome/browser/ui/login/login_prompt.cc#newcode363 chrome/browser/ui/login/login_prompt.cc:363: request_->SetAuth(net::AuthCredentials(username, password)); Perhaps create a net::AuthCredentials object before the ...
9 years, 1 month ago (2011-10-27 20:01:20 UTC) #2
cbentzel
http://codereview.chromium.org/8340026/diff/1081/chrome/browser/ui/login/login_prompt.cc File chrome/browser/ui/login/login_prompt.cc (right): http://codereview.chromium.org/8340026/diff/1081/chrome/browser/ui/login/login_prompt.cc#newcode363 chrome/browser/ui/login/login_prompt.cc:363: request_->SetAuth(net::AuthCredentials(username, password)); On 2011/10/27 20:01:20, asanka wrote: > Perhaps ...
9 years, 1 month ago (2011-10-28 02:18:40 UTC) #3
cbentzel
Oh - and the new patch adds a Zap method to AuthCredentials and only calls ...
9 years, 1 month ago (2011-10-28 14:03:47 UTC) #4
asanka
LGTM with some nitty cleanup for string16.h. http://codereview.chromium.org/8340026/diff/1081/net/http/http_auth_cache_unittest.cc File net/http/http_auth_cache_unittest.cc (right): http://codereview.chromium.org/8340026/diff/1081/net/http/http_auth_cache_unittest.cc#newcode73 net/http/http_auth_cache_unittest.cc:73: return AuthCredentials(ASCIIToUTF16(username), ...
9 years, 1 month ago (2011-10-28 14:39:40 UTC) #5
cbentzel
Thanks for the review. The latest patchset removes the string16 includes, as well as fixes ...
9 years, 1 month ago (2011-10-28 15:58:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cbentzel@chromium.org/8340026/4085
9 years, 1 month ago (2011-10-28 17:37:22 UTC) #7
commit-bot: I haz the power
9 years, 1 month ago (2011-10-28 18:45:01 UTC) #8
Change committed as 107766

Powered by Google App Engine
This is Rietveld 408576698