| Index: content/browser/mojo/mojo_child_connection.cc
|
| diff --git a/content/browser/mojo/mojo_child_connection.cc b/content/browser/mojo/mojo_child_connection.cc
|
| index c837cbcb2df5f73b9efd7eb3a7f97a1950d1acb5..896d8f5aafc4b976d5194801dc3ac0658f2cc90d 100644
|
| --- a/content/browser/mojo/mojo_child_connection.cc
|
| +++ b/content/browser/mojo/mojo_child_connection.cc
|
| @@ -35,6 +35,11 @@ MojoChildConnection::MojoChildConnection(const std::string& application_name,
|
| shell::Connector::ConnectParams params(target);
|
| params.set_client_process_connection(std::move(client),
|
| std::move(pid_receiver_request));
|
| +
|
| + // In some unit testing scenarios a null connector is passed.
|
| + if (!connector)
|
| + return;
|
| +
|
| connection_ = connector->Connect(¶ms);
|
| #if defined(OS_ANDROID)
|
| service_registry_android_ = ServiceRegistryAndroid::Create(
|
|
|