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

Issue 375663002: Leverage profile's http network session's HttpAuthCache to support proxy auth. (Closed)

Created:
6 years, 5 months ago by Nicolas Zea
Modified:
6 years, 5 months ago
Reviewers:
cbentzel, mmenke, fgorski
CC:
chromium-reviews, zea+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Leverage profile's http network session HttpAuthCache to support proxy auth. This allows the connect job to leverage any auth cache credentials the profile has, including those the user gets prompted for as part of loading a page while behind an authenticated proxy. GCM continues to use its own network session for creating the connections, but at connection time the HttpAuthCache is coped over from the profile's http network session (if available). BUG=385748 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283973

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 1

Patch Set 3 : Just use profile's network session for auth cache sourcing #

Patch Set 4 : Self review #

Patch Set 5 : Fix test #

Total comments: 1

Patch Set 6 : Pass GCM network session before HTTP one #

Patch Set 7 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -19 lines) Patch
M components/gcm_driver/gcm_client_impl.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/gcm_driver/gcm_client_impl.cc View 1 2 3 4 5 3 chunks +8 lines, -2 lines 0 comments Download
M components/gcm_driver/gcm_client_impl_unittest.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.h View 1 2 3 4 5 3 chunks +16 lines, -3 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl.cc View 1 2 3 4 5 7 chunks +24 lines, -11 lines 0 comments Download
M google_apis/gcm/engine/connection_factory_impl_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M google_apis/gcm/tools/mcs_probe.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Nicolas Zea
+Filip, PTAL. Apparently it's as easy as this!
6 years, 5 months ago (2014-07-08 00:33:46 UTC) #1
Nicolas Zea
Also +Chris FYI. I tested this locally and GCM connections succeeded once I entered the ...
6 years, 5 months ago (2014-07-08 00:36:26 UTC) #2
cbentzel
Adding mmenke who can probably do a better review of this and understand the ramifications. ...
6 years, 5 months ago (2014-07-08 13:58:05 UTC) #3
mmenke
On 2014/07/08 13:58:05, cbentzel wrote: > Adding mmenke who can probably do a better review ...
6 years, 5 months ago (2014-07-08 14:30:56 UTC) #4
fgorski
lgtm https://codereview.chromium.org/375663002/diff/20001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/375663002/diff/20001/components/gcm_driver/gcm_client_impl.cc#newcode281 components/gcm_driver/gcm_client_impl.cc:281: ->http_transaction_factory() nit: you are moving the arrows from ...
6 years, 5 months ago (2014-07-08 16:51:33 UTC) #5
cbentzel
Please do not land until mmenke gives the go-ahead. Thanks.
6 years, 5 months ago (2014-07-08 16:54:03 UTC) #6
fgorski
On 2014/07/08 16:54:03, cbentzel wrote: > Please do not land until mmenke gives the go-ahead. ...
6 years, 5 months ago (2014-07-08 16:54:42 UTC) #7
Nicolas Zea
On 2014/07/08 14:30:56, mmenke wrote: > On 2014/07/08 13:58:05, cbentzel wrote: > > Adding mmenke ...
6 years, 5 months ago (2014-07-08 17:32:46 UTC) #8
mmenke
On 2014/07/08 17:32:46, Nicolas Zea wrote: > On 2014/07/08 14:30:56, mmenke wrote: > > On ...
6 years, 5 months ago (2014-07-08 17:46:06 UTC) #9
Nicolas Zea
On 2014/07/08 17:46:06, mmenke wrote: > On 2014/07/08 17:32:46, Nicolas Zea wrote: > > On ...
6 years, 5 months ago (2014-07-08 19:28:55 UTC) #10
mmenke
On 2014/07/08 19:28:55, Nicolas Zea wrote: > On 2014/07/08 17:46:06, mmenke wrote: > > On ...
6 years, 5 months ago (2014-07-08 20:19:25 UTC) #11
mmenke
On 2014/07/08 20:19:25, mmenke wrote: > On 2014/07/08 19:28:55, Nicolas Zea wrote: > > On ...
6 years, 5 months ago (2014-07-09 17:28:19 UTC) #12
Nicolas Zea
On 2014/07/09 17:28:19, mmenke wrote: > On 2014/07/08 20:19:25, mmenke wrote: > > On 2014/07/08 ...
6 years, 5 months ago (2014-07-10 19:59:41 UTC) #13
mmenke
On 2014/07/10 19:59:41, Nicolas Zea wrote: > On 2014/07/09 17:28:19, mmenke wrote: > > I ...
6 years, 5 months ago (2014-07-10 20:08:58 UTC) #14
cbentzel
On 2014/07/10 20:08:58, mmenke wrote: > On 2014/07/10 19:59:41, Nicolas Zea wrote: > > On ...
6 years, 5 months ago (2014-07-14 17:47:41 UTC) #15
Nicolas Zea
> Quick question: How frequently is this context created? We have code in > HttpAuthCache ...
6 years, 5 months ago (2014-07-14 20:57:59 UTC) #16
mmenke
On 2014/07/14 20:57:59, Nicolas Zea wrote: > > Quick question: How frequently is this context ...
6 years, 5 months ago (2014-07-14 21:06:19 UTC) #17
cbentzel
On 2014/07/14 21:06:19, mmenke wrote: > On 2014/07/14 20:57:59, Nicolas Zea wrote: > > > ...
6 years, 5 months ago (2014-07-16 16:28:17 UTC) #18
Nicolas Zea
PTAL. Patch now passes in the profile's HttpNetworkSession as an optional param, from which GCM's ...
6 years, 5 months ago (2014-07-16 23:01:09 UTC) #19
fgorski
On 2014/07/16 23:01:09, Nicolas Zea wrote: > PTAL. Patch now passes in the profile's HttpNetworkSession ...
6 years, 5 months ago (2014-07-17 04:23:25 UTC) #20
mmenke
This approach LGTM. https://codereview.chromium.org/375663002/diff/80001/components/gcm_driver/gcm_client_impl.cc File components/gcm_driver/gcm_client_impl.cc (right): https://codereview.chromium.org/375663002/diff/80001/components/gcm_driver/gcm_client_impl.cc#newcode284 components/gcm_driver/gcm_client_impl.cc:284: GetNetworkSessionParams(); Oh...You're already using the main ...
6 years, 5 months ago (2014-07-17 18:34:07 UTC) #21
Nicolas Zea
Updated ordering of params and committing via Commitbot
6 years, 5 months ago (2014-07-17 19:52:29 UTC) #22
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 5 months ago (2014-07-17 19:52:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/375663002/100001
6 years, 5 months ago (2014-07-17 19:54:59 UTC) #24
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 5 months ago (2014-07-17 20:00:09 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/375663002/120001
6 years, 5 months ago (2014-07-17 20:00:31 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 23:58:42 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 00:25:01 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/172179)
6 years, 5 months ago (2014-07-18 00:25:02 UTC) #29
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 5 months ago (2014-07-18 00:27:02 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/375663002/120001
6 years, 5 months ago (2014-07-18 00:28:23 UTC) #31
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 02:19:00 UTC) #32
Message was sent while issue was closed.
Change committed as 283973

Powered by Google App Engine
This is Rietveld 408576698