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

Issue 11572039: Make HttpNetworkLayer subscribe to power events on Windows. (Closed)

Created:
8 years ago by Philippe
Modified:
6 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, pasko-google - do not use, felipeg, digit1, ppi
Visibility:
Public.

Description

Make HttpNetworkLayer subscribe to power events on Windows. HttpNetworkLayer unintentionally stopped subscribing for power events 1 year and 6 months ago (see r86241). This is not a big problem in practice though since URLRequestJob already subscribes to power events. The socket pool is also invalidated when the network change notifier fires a 'no connection' event after a suspend on desktop. Another CL will follow to align Android with desktop on this. This makes HttpNetworkLayer subscribe to power events on Windows which is the platform that initially needed it.

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address Paul's comments #

Patch Set 3 : Update CL according to Ricardo's offline remark #

Patch Set 4 : Handle case where SystemMonitor::Get() returns NULL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M net/http/http_network_layer.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M net/http/http_network_layer.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Philippe
Please see the discussion with willchan on https://chromiumcodereview.appspot.com/11538008/ for more context. I will send the ...
8 years ago (2012-12-14 10:58:09 UTC) #1
pauljensen
https://codereview.chromium.org/11572039/diff/1/net/http/http_network_layer.h File net/http/http_network_layer.h (right): https://codereview.chromium.org/11572039/diff/1/net/http/http_network_layer.h#newcode10 net/http/http_network_layer.h:10: #include "base/memory/ref_counted.h" While you're in this file, you could ...
8 years ago (2012-12-14 14:19:31 UTC) #2
Philippe
Thanks Paul. https://chromiumcodereview.appspot.com/11572039/diff/1/net/http/http_network_layer.h File net/http/http_network_layer.h (right): https://chromiumcodereview.appspot.com/11572039/diff/1/net/http/http_network_layer.h#newcode10 net/http/http_network_layer.h:10: #include "base/memory/ref_counted.h" On 2012/12/14 14:19:31, pauljensen wrote: ...
8 years ago (2012-12-14 14:34:22 UTC) #3
willchan no longer on Chromium
I don't think Android should fire a network changed event on suspend. I think that ...
8 years ago (2012-12-14 21:40:26 UTC) #4
pauljensen
This change lgtm; it's simply removing some dead code. Could we continue the discussion of ...
8 years ago (2012-12-14 22:13:02 UTC) #5
willchan no longer on Chromium
Yes, we can move the discussion elsewhere. But the socket pool statement should stay because ...
8 years ago (2012-12-14 22:16:44 UTC) #6
rvargas (doing something else)
Actually, shouldn't we register for notifications instead? One thing that this code was supposed to ...
8 years ago (2012-12-14 22:18:42 UTC) #7
willchan no longer on Chromium
So the code has regressed for well over a year, do you think that we ...
8 years ago (2012-12-14 23:34:17 UTC) #8
rvargas (doing something else)
I don't think we have visibility into all of our problems... barely the big ones. ...
8 years ago (2012-12-14 23:41:27 UTC) #9
willchan no longer on Chromium
That's a reasonable point. OK. I don't care too much. I defer. On Fri, Dec ...
8 years ago (2012-12-14 23:43:51 UTC) #10
pauljensen
I wonder what problems could result from requests proceeding during a suspend-and-resume event. Unfortunately this ...
8 years ago (2012-12-15 00:25:18 UTC) #11
Philippe
On 2012/12/15 00:25:18, pauljensen wrote: > I wonder what problems could result from requests proceeding ...
8 years ago (2012-12-17 11:51:11 UTC) #12
rvargas (doing something else)
lgtm
8 years ago (2012-12-18 21:22:42 UTC) #13
Philippe
On 2012/12/18 21:22:42, rvargas wrote: > lgtm Thanks guys, I'm submitting.
8 years ago (2012-12-19 09:02:44 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/11572039/15001
8 years ago (2012-12-19 09:02:52 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) unit_tests
8 years ago (2012-12-19 10:24:29 UTC) #16
Philippe
On 2012/12/19 10:24:29, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 12 months ago (2012-12-26 09:34:34 UTC) #17
memyy
My like very good
7 years, 12 months ago (2012-12-26 13:03:42 UTC) #18
pauljensen
On 2012/12/26 09:34:34, Philippe wrote: > On 2012/12/19 10:24:29, I haz the power (commit-bot) wrote: ...
7 years, 12 months ago (2012-12-26 14:45:26 UTC) #19
szym
On 2012/12/26 09:34:34, Philippe wrote: > On 2012/12/19 10:24:29, I haz the power (commit-bot) wrote: ...
7 years, 12 months ago (2012-12-26 14:46:44 UTC) #20
Philippe
On 2012/12/26 14:46:44, szym wrote: > On 2012/12/26 09:34:34, Philippe wrote: > > On 2012/12/19 ...
7 years, 12 months ago (2012-12-26 15:05:09 UTC) #21
szym
On 2012/12/26 15:05:09, Philippe wrote: > On 2012/12/26 14:46:44, szym wrote: > > On 2012/12/26 ...
7 years, 12 months ago (2012-12-26 15:17:48 UTC) #22
Philippe
On 2012/12/26 15:17:48, szym wrote: > On 2012/12/26 15:05:09, Philippe wrote: > > On 2012/12/26 ...
7 years, 12 months ago (2012-12-26 15:29:10 UTC) #23
szym
This is a #if defined(OS_WIN) change, so not sure how you'd catch that on Android. ...
7 years, 12 months ago (2012-12-26 15:36:09 UTC) #24
memyy
metanata4@gmail.com
7 years, 12 months ago (2012-12-26 16:15:22 UTC) #25
memyy
metanata4@gmail.com
7 years, 12 months ago (2012-12-26 16:18:03 UTC) #26
rvargas (doing something else)
> I'm really bad at grepping. It turns out that all processes in content/ create ...
7 years, 12 months ago (2012-12-26 19:30:27 UTC) #27
szym
On 2012/12/26 19:30:27, rvargas wrote: > > I'm really bad at grepping. It turns out ...
7 years, 12 months ago (2012-12-26 19:33:23 UTC) #28
rvargas (doing something else)
On 2012/12/26 19:33:23, szym wrote: > On 2012/12/26 19:30:27, rvargas wrote: > > > I'm ...
7 years, 12 months ago (2012-12-26 19:56:50 UTC) #29
pauljensen
Has someone filed a bug about the race? I just noticed that FtpTransactionFactory (which is ...
7 years, 11 months ago (2013-01-21 04:07:12 UTC) #30
Philippe
7 years, 11 months ago (2013-01-23 13:49:52 UTC) #31
On 2013/01/21 04:07:12, pauljensen wrote:
> Has someone filed a bug about the race?
> I just noticed that FtpTransactionFactory (which is parent to FtpNetworkLayer)
> has a similar problem to HttpNetworkLayer.  It has a Suspend() function but no
> callers :(

I didn't get to come back to this recently. Also, the failures on the bots (when
subscribing to power events) still need to be investigated. Could someone take
this over?

Powered by Google App Engine
This is Rietveld 408576698