Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Issue 3161016: Watch the Internet Explorer registry keys so we can detect proxy settings changes faster. (Closed)

Created:
10 years, 4 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Watch the Internet Explorer registry keys so we can detect proxy settings changes faster. Previously we would poll on a background thread every 5 seconds (triggered by network activity) to check for changes. This meant there was a 5 second window during which new requests might still be using the old settings. With this CL, the settings are noticed almost immediately and the continuous polling is de-emphasized. (We still poll, but less often. This is a precaution since we are relying on implementation details of a winhttp function, and can't be sure it won't change in the future, or is even completely accurate right now). BUG=52120 TEST=Open chrome://net-internals/#requests. Request some webpage. Now make changes to the Internet explorer proxy settinsg. You should see a PROXY_CONFIG_CHANGED event emitted immediately after saving each change in the dialog box. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56305

Patch Set 1 #

Patch Set 2 : improve a comment #

Patch Set 3 : add a safetynet in case lots of registry notifications are triggered at same time #

Total comments: 11

Patch Set 4 : Address rvargas' comments #

Patch Set 5 : d'oh, fix error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -19 lines) Patch
M net/proxy/polling_proxy_config_service.h View 1 chunk +3 lines, -0 lines 0 comments Download
M net/proxy/polling_proxy_config_service.cc View 1 2 3 4 5 chunks +35 lines, -17 lines 0 comments Download
M net/proxy/proxy_config_service_win.h View 1 2 3 1 chunk +44 lines, -1 line 0 comments Download
M net/proxy/proxy_config_service_win.cc View 1 2 3 3 chunks +107 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
eroman
10 years, 4 months ago (2010-08-14 01:25:43 UTC) #1
eroman
(Note I just made a small edit to polling_proxy_config_service.cc)
10 years, 4 months ago (2010-08-14 01:57:55 UTC) #2
rvargas (doing something else)
http://codereview.chromium.org/3161016/diff/11001/12001 File net/proxy/polling_proxy_config_service.cc (right): http://codereview.chromium.org/3161016/diff/11001/12001#newcode79 net/proxy/polling_proxy_config_service.cc:79: if (num_poll_tasks_outstanding_ > 5) { Did you consider just ...
10 years, 4 months ago (2010-08-16 19:04:12 UTC) #3
eroman
http://codereview.chromium.org/3161016/diff/11001/12001 File net/proxy/polling_proxy_config_service.cc (right): http://codereview.chromium.org/3161016/diff/11001/12001#newcode79 net/proxy/polling_proxy_config_service.cc:79: if (num_poll_tasks_outstanding_ > 5) { On 2010/08/16 19:04:12, rvargas ...
10 years, 4 months ago (2010-08-16 19:53:29 UTC) #4
eroman
Thanks for the review! http://codereview.chromium.org/3161016/diff/11001/12001 File net/proxy/polling_proxy_config_service.cc (right): http://codereview.chromium.org/3161016/diff/11001/12001#newcode79 net/proxy/polling_proxy_config_service.cc:79: if (num_poll_tasks_outstanding_ > 5) { ...
10 years, 4 months ago (2010-08-16 20:33:18 UTC) #5
rvargas (doing something else)
10 years, 4 months ago (2010-08-16 23:07:08 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698