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

Unified Diff: mojo/edk/embedder/embedder.cc

Issue 1946423002: EDK: Remove Core::AddDispatcher(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | mojo/edk/embedder/multiprocess_embedder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/embedder.cc
diff --git a/mojo/edk/embedder/embedder.cc b/mojo/edk/embedder/embedder.cc
index 6622de928d0007a55518e83e1d046cf1172da0bd..ac2536209cb69dd3b020d9eb9886bc2e5e71e525 100644
--- a/mojo/edk/embedder/embedder.cc
+++ b/mojo/edk/embedder/embedder.cc
@@ -8,6 +8,7 @@
#include "mojo/edk/embedder/embedder_internal.h"
#include "mojo/edk/system/configuration.h"
#include "mojo/edk/system/core.h"
+#include "mojo/edk/system/handle.h"
#include "mojo/edk/system/platform_handle_dispatcher.h"
#include "mojo/edk/util/ref_ptr.h"
@@ -54,7 +55,9 @@ MojoResult CreatePlatformHandleWrapper(
system::PlatformHandleDispatcher::Create(platform_handle.Pass());
DCHECK(internal::g_core);
- MojoHandle h = internal::g_core->AddDispatcher(dispatcher.get());
+ MojoHandle h = internal::g_core->AddHandle(
+ system::Handle(dispatcher.Clone(),
+ system::PlatformHandleDispatcher::kDefaultHandleRights));
if (h == MOJO_HANDLE_INVALID) {
LOG(ERROR) << "Handle table full";
dispatcher->Close();
« no previous file with comments | « no previous file | mojo/edk/embedder/multiprocess_embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698