DescriptionWatch 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 #
Messages
Total messages: 6 (0 generated)
|