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

Unified Diff: content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h

Issue 2608783003: Fix ThreadSafeAssociatedInterfacePtrProvider raciness. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h
diff --git a/content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h b/content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h
index a05f2b9ffe16755d7b23bd9f16456ea043896f46..87dd2ab304fd9a03d6bb2942b94997389d05b268 100644
--- a/content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h
+++ b/content/renderer/mojo/thread_safe_associated_interface_ptr_provider.h
@@ -29,7 +29,8 @@ class ThreadSafeAssociatedInterfacePtrProvider {
scoped_refptr<mojo::ThreadSafeAssociatedInterfacePtr<Interface>>
CreateInterfacePtr() {
scoped_refptr<mojo::ThreadSafeAssociatedInterfacePtr<Interface>> ptr =
- mojo::ThreadSafeAssociatedInterfacePtr<Interface>::CreateUnbound();
+ mojo::ThreadSafeAssociatedInterfacePtr<Interface>::CreateUnbound(
+ channel_proxy_->ipc_task_runner());
channel_proxy_->RetrieveAssociatedInterfaceOnIOThread<Interface>(base::Bind(
leonhsl(Using Gerrit) 2016/12/30 06:53:15 I'm not sure I fully understand,, would you please
Jay Civelli 2017/01/03 16:40:56 I am not sure I fully understand the question. The
leonhsl(Using Gerrit) 2017/01/04 03:35:03 So I suppose the following scenario maybe is not a
&ThreadSafeAssociatedInterfacePtrProvider::BindInterfacePtr<Interface>,
ptr));
« no previous file with comments | « no previous file | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698