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

Issue 7044058: Cancel when InitProxyResolver cancels, so we don't use callback later. (Closed)

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

Description

Cancel when InitProxyResolver cancels, so we don't use callback later. Also fix the invariant of data, i.e. null client_callback_ once we enter state DONE. BUG=84496 TEST=net_unittests --gtest_filter=Dhcp*:InitProxy* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88829

Patch Set 1 #

Patch Set 2 : Add regression test, and fix NULL check (caught by existing test). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -1 line) Patch
M net/proxy/dhcp_proxy_script_fetcher_win.cc View 3 chunks +5 lines, -1 line 0 comments Download
M net/proxy/init_proxy_resolver.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M net/proxy/init_proxy_resolver_unittest.cc View 1 3 chunks +67 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jói
Hi Eric, This should fix all, or at least most of, the crashes related to ...
9 years, 6 months ago (2011-06-08 20:13:07 UTC) #1
eroman
LGTM. Is there a unit-test which tests this behavior?
9 years, 6 months ago (2011-06-08 20:38:01 UTC) #2
Jói
The test would basically just assert that DhcpProxyScriptFetcherWin::Cancel is called when InitProxyResolver::Cancel is called, which ...
9 years, 6 months ago (2011-06-08 20:54:55 UTC) #3
eroman
ok fine as is then. On Wed, Jun 8, 2011 at 1:54 PM, Jói Sigurðsson ...
9 years, 6 months ago (2011-06-08 21:29:49 UTC) #4
Jói
Actually I just thought of a test that would most often have crashed before the ...
9 years, 6 months ago (2011-06-09 01:45:49 UTC) #5
Jói
PTAL, I've added a regression test and fixed a check-before-use issue that an existing test ...
9 years, 6 months ago (2011-06-09 21:07:36 UTC) #6
eroman
9 years, 6 months ago (2011-06-10 21:27:41 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698