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

Unified Diff: mojo/edk/embedder/embedder.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/embedder.cc
diff --git a/mojo/edk/embedder/embedder.cc b/mojo/edk/embedder/embedder.cc
index 6320365ec11a0a8b2a6334087d5b4ce366291ae2..3b0d923e485c6befa8a734064d7c6d3a17e69b75 100644
--- a/mojo/edk/embedder/embedder.cc
+++ b/mojo/edk/embedder/embedder.cc
@@ -44,9 +44,17 @@ void SetMaxMessageSize(size_t bytes) {
void ChildProcessLaunched(base::ProcessHandle child_process,
ScopedPlatformHandle server_pipe,
const std::string& child_token) {
+ ChildProcessLaunched(
+ child_process, std::move(server_pipe), child_token, base::Closure());
+}
+
+void ChildProcessLaunched(base::ProcessHandle child_process,
+ ScopedPlatformHandle server_pipe,
+ const std::string& child_token,
+ const base::Closure& bad_message_callback) {
CHECK(internal::g_core);
internal::g_core->AddChild(child_process, std::move(server_pipe),
- child_token);
+ child_token, bad_message_callback);
}
void ChildProcessLaunchFailed(const std::string& child_token) {

Powered by Google App Engine
This is Rietveld 408576698