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

Unified Diff: third_party/mojo/src/mojo/edk/system/channel_manager.h

Issue 1402453004: Use a WeakPtr to post a create channel task to the IO thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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 | third_party/mojo/src/mojo/edk/system/channel_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mojo/src/mojo/edk/system/channel_manager.h
diff --git a/third_party/mojo/src/mojo/edk/system/channel_manager.h b/third_party/mojo/src/mojo/edk/system/channel_manager.h
index 0d6c65ddc1b2c3e63352e8aab6772514acebc05b..360996f7f352d936c2c639d460a8f4868a684db3 100644
--- a/third_party/mojo/src/mojo/edk/system/channel_manager.h
+++ b/third_party/mojo/src/mojo/edk/system/channel_manager.h
@@ -139,7 +139,8 @@ class MOJO_SYSTEM_IMPL_EXPORT ChannelManager {
scoped_refptr<system::ChannelEndpoint> bootstrap_channel_endpoint);
// Used by |CreateChannel()|. Called on the I/O thread.
- void CreateChannelHelper(
+ static void CreateChannelHelper(
+ base::WeakPtr<ChannelManager> channel_manager,
ChannelId channel_id,
embedder::ScopedPlatformHandle platform_handle,
scoped_refptr<system::ChannelEndpoint> bootstrap_channel_endpoint,
« no previous file with comments | « no previous file | third_party/mojo/src/mojo/edk/system/channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698