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 |