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

Issue 2344893009: Blimp: relocate thread-unsafe member getter in DropConnection code. (Closed)

Created:
4 years, 3 months ago by Kevin M
Modified:
4 years, 3 months ago
Reviewers:
nyquist, Wez
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Blimp: relocate thread-unsafe member getter in DropConnection code. There is logic in the ClientSession/ClientContext which attempts to drop a connection on the IO thread. Unfortunately, in doing so, it called a thread-unsafe member getter within the call to PostTask. This CL moves the getter into a helper method which runs entirely on the IO thread. R=nyquist@chromium.org,wez@chromium.org CC=steimel@chromium.org BUG=647814 Committed: https://crrev.com/6ecbaf9d15c6bff239e1a38502de55146d3e56e6 Cr-Commit-Position: refs/heads/master@{#419491}

Patch Set 1 #

Total comments: 5

Patch Set 2 : wez feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -10 lines) Patch
M blimp/client/core/blimp_client_context_impl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M blimp/client/core/blimp_client_context_impl.cc View 3 chunks +12 lines, -5 lines 0 comments Download
M blimp/client/session/blimp_client_session.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M blimp/client/session/blimp_client_session.cc View 3 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Kevin M
4 years, 3 months ago (2016-09-16 21:19:55 UTC) #1
Kevin M
Looks like the regression was here: https://codereview.chromium.org/2187893002
4 years, 3 months ago (2016-09-16 21:20:27 UTC) #2
Wez
https://codereview.chromium.org/2344893009/diff/1/blimp/client/session/blimp_client_session.cc File blimp/client/session/blimp_client_session.cc (right): https://codereview.chromium.org/2344893009/diff/1/blimp/client/session/blimp_client_session.cc#newcode162 blimp/client/session/blimp_client_session.cc:162: FROM_HERE, base::Bind(&DropConnectionOnIOThread, net_components_.get())); How come we are able to ...
4 years, 3 months ago (2016-09-17 01:56:31 UTC) #3
Kevin M
https://codereview.chromium.org/2344893009/diff/1/blimp/client/session/blimp_client_session.cc File blimp/client/session/blimp_client_session.cc (right): https://codereview.chromium.org/2344893009/diff/1/blimp/client/session/blimp_client_session.cc#newcode162 blimp/client/session/blimp_client_session.cc:162: FROM_HERE, base::Bind(&DropConnectionOnIOThread, net_components_.get())); On 2016/09/17 01:56:31, Wez wrote: > ...
4 years, 3 months ago (2016-09-19 17:00:24 UTC) #4
Wez
lgtm https://codereview.chromium.org/2344893009/diff/1/blimp/client/session/blimp_client_session.cc File blimp/client/session/blimp_client_session.cc (right): https://codereview.chromium.org/2344893009/diff/1/blimp/client/session/blimp_client_session.cc#newcode162 blimp/client/session/blimp_client_session.cc:162: FROM_HERE, base::Bind(&DropConnectionOnIOThread, net_components_.get())); On 2016/09/19 17:00:23, Kevin M ...
4 years, 3 months ago (2016-09-19 17:04:28 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2344893009/20001
4 years, 3 months ago (2016-09-19 17:05:57 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-19 17:18:21 UTC) #8
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 17:21:21 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6ecbaf9d15c6bff239e1a38502de55146d3e56e6
Cr-Commit-Position: refs/heads/master@{#419491}

Powered by Google App Engine
This is Rietveld 408576698