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

Issue 2608783003: Fix ThreadSafeAssociatedInterfacePtrProvider raciness. (Closed)

Created:
3 years, 11 months ago by Jay Civelli
Modified:
3 years, 11 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, leonhsl(Using Gerrit), mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix ThreadSafeAssociatedInterfacePtrProvider raciness. Ensures the thread safe interface pointer returned by ThreadSafeAssociatedInterfacePtrProvider can be called before the interface pointer is actually bound. BUG=675089 TEST=Run mojo_public_bindings_unittests Review-Url: https://codereview.chromium.org/2608783003 Cr-Commit-Position: refs/heads/master@{#441981} Committed: https://chromium.googlesource.com/chromium/src/+/35e5ff5b38c32d2bb9b03c2bc77911e7bf75efd1

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -39 lines) Patch
M content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h View 1 chunk +2 lines, -1 line 3 comments Download
M ipc/ipc_channel_proxy.h View 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/associated_interface_unittest.cc View 3 chunks +37 lines, -29 lines 0 comments Download
M mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M mojo/public/cpp/bindings/thread_safe_interface_ptr.h View 1 chunk +15 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
Jay Civelli
3 years, 11 months ago (2016-12-29 20:51:51 UTC) #5
leonhsl(Using Gerrit)
https://codereview.chromium.org/2608783003/diff/1/content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h File content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h (right): https://codereview.chromium.org/2608783003/diff/1/content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h#newcode34 content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h:34: channel_proxy_->RetrieveAssociatedInterfaceOnIOThread<Interface>(base::Bind( I'm not sure I fully understand,, would you ...
3 years, 11 months ago (2016-12-30 06:53:15 UTC) #8
Jay Civelli
https://codereview.chromium.org/2608783003/diff/1/content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h File content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h (right): https://codereview.chromium.org/2608783003/diff/1/content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h#newcode34 content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h:34: channel_proxy_->RetrieveAssociatedInterfaceOnIOThread<Interface>(base::Bind( On 2016/12/30 06:53:15, leonhsl wrote: > I'm not ...
3 years, 11 months ago (2017-01-03 16:40:56 UTC) #9
leonhsl(Using Gerrit)
https://codereview.chromium.org/2608783003/diff/1/content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h File content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h (right): https://codereview.chromium.org/2608783003/diff/1/content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h#newcode34 content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h:34: channel_proxy_->RetrieveAssociatedInterfaceOnIOThread<Interface>(base::Bind( On 2017/01/03 16:40:56, Jay Civelli wrote: > On ...
3 years, 11 months ago (2017-01-04 03:35:03 UTC) #11
Jay Civelli
On Tue, Jan 3, 2017 at 7:35 PM, <leon.han@intel.com> wrote: > > https://codereview.chromium.org/2608783003/diff/1/content/ > renderer/mojo/thread_safe_associated_interface_ptr_provider.h ...
3 years, 11 months ago (2017-01-04 16:38:43 UTC) #12
Ken Rockot(use gerrit already)
lgtm
3 years, 11 months ago (2017-01-05 21:16:37 UTC) #13
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/2608783003/1
3 years, 11 months ago (2017-01-05 21:17:57 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/335817)
3 years, 11 months ago (2017-01-05 21:26:09 UTC) #17
Jay Civelli
Adding @jam for content/ review.
3 years, 11 months ago (2017-01-05 21:33:39 UTC) #19
jam
lgtm
3 years, 11 months ago (2017-01-06 01:29:54 UTC) #20
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/2608783003/1
3 years, 11 months ago (2017-01-06 18:16:30 UTC) #22
commit-bot: I haz the power
3 years, 11 months ago (2017-01-06 18:23:41 UTC) #25
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/35e5ff5b38c32d2bb9b03c2bc779...

Powered by Google App Engine
This is Rietveld 408576698