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

Issue 12223080: Bind weak ptr in PostStartDnsProbeTask, not StartDnsProbe (Closed)

Created:
7 years, 10 months ago by Deprecated (see juliatuttle)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Bind weak ptr in PostStartDnsProbeTask, not StartDnsProbe A Callback decides when it is constructed whether it needs to do a weak pointer check when called. Therefore, pass the weak pointer of NetErrorTabHelper to base::Bind when we create the callback instead of binding it later in StartDnsProbe. BUG=174720 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182301

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -16 lines) Patch
M chrome/browser/net/net_error_tab_helper.cc View 1 2 chunks +11 lines, -16 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Deprecated (see juliatuttle)
PTAL, mmenke and sleevi. (dharani, this is hopefully a fix for the bug you pointed ...
7 years, 10 months ago (2013-02-12 00:00:24 UTC) #1
Ryan Sleevi
nits, but as discussed on IM, the functional "don't crash" part LGTM. https://chromiumcodereview.appspot.com/12223080/diff/1/chrome/browser/net/net_error_tab_helper.cc File chrome/browser/net/net_error_tab_helper.cc ...
7 years, 10 months ago (2013-02-12 00:29:31 UTC) #2
Deprecated (see juliatuttle)
Fixed sleevi's nits. https://chromiumcodereview.appspot.com/12223080/diff/1/chrome/browser/net/net_error_tab_helper.cc File chrome/browser/net/net_error_tab_helper.cc (right): https://chromiumcodereview.appspot.com/12223080/diff/1/chrome/browser/net/net_error_tab_helper.cc#newcode53 chrome/browser/net/net_error_tab_helper.cc:53: void DnsProbeCallback( On 2013/02/12 00:29:31, Ryan ...
7 years, 10 months ago (2013-02-13 03:17:57 UTC) #3
mmenke
LGTM
7 years, 10 months ago (2013-02-13 15:20:56 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/12223080/3002
7 years, 10 months ago (2013-02-13 16:49:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ttuttle@chromium.org/12223080/3002
7 years, 10 months ago (2013-02-13 19:36:14 UTC) #6
commit-bot: I haz the power
7 years, 10 months ago (2013-02-13 20:47:10 UTC) #7
Message was sent while issue was closed.
Change committed as 182301

Powered by Google App Engine
This is Rietveld 408576698