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

Unified Diff: content/browser/child_process_launcher.cc

Issue 1018043004: Drop queued IPC messages if the child process dies while spawning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding test Created 5 years, 9 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: content/browser/child_process_launcher.cc
diff --git a/content/browser/child_process_launcher.cc b/content/browser/child_process_launcher.cc
index 7bf4f492bb3250b332161d3047929a7b81787114..24fd73721846b21a9a9b63a390c4940ac8a472ac 100644
--- a/content/browser/child_process_launcher.cc
+++ b/content/browser/child_process_launcher.cc
@@ -98,6 +98,12 @@ class ChildProcessLauncher::Context
void SetProcessBackgrounded(bool background);
+ Client* ReplaceClientForTest(Client* client) {
+ Client* ret = client_;
+ client_ = client;
+ return ret;
+ }
+
private:
friend class base::RefCountedThreadSafe<ChildProcessLauncher::Context>;
@@ -623,4 +629,9 @@ void ChildProcessLauncher::SetTerminateChildOnShutdown(
context_->set_terminate_child_on_shutdown(terminate_on_shutdown);
}
+ChildProcessLauncher::Client* ChildProcessLauncher::ReplaceClientForTest(
+ Client* client) {
+ return context_->ReplaceClientForTest(client);
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698