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

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

Issue 2043713004: Mojo: Add NotifyBadMessage API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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
Index: mojo/edk/embedder/entrypoints.cc
diff --git a/mojo/edk/embedder/entrypoints.cc b/mojo/edk/embedder/entrypoints.cc
index 4dca6b6e30366761f8d4738a28c397eb8fa967a4..c7e9505812ff66b55a370ada476a68c678547d71 100644
--- a/mojo/edk/embedder/entrypoints.cc
+++ b/mojo/edk/embedder/entrypoints.cc
@@ -248,6 +248,12 @@ MojoResult MojoUnwrapPlatformSharedBufferHandleImpl(
num_bytes, flags);
}
+MojoResult MojoNotifyBadMessageImpl(MojoMessageHandle message,
+ const char* error,
+ size_t error_num_bytes) {
+ return g_core->NotifyBadMessage(message, error, error_num_bytes);
+}
+
} // extern "C"
namespace mojo {
@@ -288,7 +294,8 @@ MojoSystemThunks MakeSystemThunks() {
MojoWrapPlatformHandleImpl,
MojoUnwrapPlatformHandleImpl,
MojoWrapPlatformSharedBufferHandleImpl,
- MojoUnwrapPlatformSharedBufferHandleImpl};
+ MojoUnwrapPlatformSharedBufferHandleImpl,
+ MojoNotifyBadMessageImpl};
return system_thunks;
}

Powered by Google App Engine
This is Rietveld 408576698