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

Issue 9139070: Don't poll the PAC script during periods of network inactivity. (Closed)

Created:
8 years, 11 months ago by eroman
Modified:
8 years, 11 months ago
Reviewers:
wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Don't poll the PAC script during periods of network inactivity. BUG=109310 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117709

Patch Set 1 #

Patch Set 2 : remove static since it was causing an AtExit destructor #

Total comments: 7

Patch Set 3 : address wtc comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -69 lines) Patch
M net/proxy/proxy_service.h View 1 2 2 chunks +45 lines, -6 lines 4 comments Download
M net/proxy/proxy_service.cc View 1 2 6 chunks +105 lines, -52 lines 0 comments Download
M net/proxy/proxy_service_unittest.cc View 1 8 chunks +223 lines, -11 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
eroman
8 years, 11 months ago (2012-01-12 20:38:21 UTC) #1
wtc
Patch Set 2 LGTM. I reviewed the CL superficially, so I'm counting on you to ...
8 years, 11 months ago (2012-01-13 01:08:45 UTC) #2
eroman
http://codereview.chromium.org/9139070/diff/2005/net/proxy/proxy_service.cc File net/proxy/proxy_service.cc (right): http://codereview.chromium.org/9139070/diff/2005/net/proxy/proxy_service.cc#newcode345 net/proxy/proxy_service.cc:345: ProxyService::PacPollPolicy::~PacPollPolicy() {} On 2012/01/13 01:08:45, wtc wrote: > > ...
8 years, 11 months ago (2012-01-13 01:29:10 UTC) #3
Elliot Glaysher
On 2012/01/13 01:29:10, eroman wrote: > http://codereview.chromium.org/9139070/diff/2005/net/proxy/proxy_service.cc > File net/proxy/proxy_service.cc (right): > > http://codereview.chromium.org/9139070/diff/2005/net/proxy/proxy_service.cc#newcode345 > ...
8 years, 11 months ago (2012-01-13 18:19:18 UTC) #4
eroman
Thanks Eliot. In that case I will leave it in the header file.
8 years, 11 months ago (2012-01-13 18:54:31 UTC) #5
eroman
All comments address. Will commit after some more manual testing. http://codereview.chromium.org/9139070/diff/2005/net/proxy/proxy_service.cc File net/proxy/proxy_service.cc (right): http://codereview.chromium.org/9139070/diff/2005/net/proxy/proxy_service.cc#newcode345 ...
8 years, 11 months ago (2012-01-13 20:05:27 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/9139070/8001
8 years, 11 months ago (2012-01-13 20:31:15 UTC) #7
commit-bot: I haz the power
Change committed as 117709
8 years, 11 months ago (2012-01-13 22:05:47 UTC) #8
wtc
Patch set 3 LGTM. Feel free to ignore the nits below. http://codereview.chromium.org/9139070/diff/8001/net/proxy/proxy_service.h File net/proxy/proxy_service.h (right): ...
8 years, 11 months ago (2012-01-17 22:42:53 UTC) #9
eroman
8 years, 11 months ago (2012-01-17 22:47:21 UTC) #10
http://codereview.chromium.org/9139070/diff/8001/net/proxy/proxy_service.h
File net/proxy/proxy_service.h (right):

http://codereview.chromium.org/9139070/diff/8001/net/proxy/proxy_service.h#ne...
net/proxy/proxy_service.h:77: // code that the most last PAC fetch failed with
(or OK if it was a
On 2012/01/17 22:42:53, wtc wrote:
> 
> Nit: remove "most"?

Will do.

http://codereview.chromium.org/9139070/diff/8001/net/proxy/proxy_service.h#ne...
net/proxy/proxy_service.h:82: // by the preceding poll. Implementations must set
|next_delay_ms|.
On 2012/01/17 22:42:53, wtc wrote:
> 
> preceding => current ?  The parameter is named current_delay_ms.

There are two parameters, one called current_delay_ms, and one called
next_delay_ms. I believe the comment is correct.

Powered by Google App Engine
This is Rietveld 408576698