| Index: content/browser/android/sandboxed_process_launcher.cc
|
| diff --git a/content/browser/android/sandboxed_process_launcher.cc b/content/browser/android/sandboxed_process_launcher.cc
|
| index f46f2bbb4d06fad518fb40175a7205c8c202a5d2..04d3512f693b2fbcb615138d464e37493ce412f0 100644
|
| --- a/content/browser/android/sandboxed_process_launcher.cc
|
| +++ b/content/browser/android/sandboxed_process_launcher.cc
|
| @@ -22,14 +22,16 @@ namespace content {
|
| // started.
|
| // |client_context| is the pointer to StartSandboxedProcessCallback which was
|
| // passed in from StartSandboxedProcess.
|
| -// |handle| is the processID of the child process as originated in Java.
|
| +// |handle| is the processID of the child process as originated in Java, 0 if
|
| +// the SandboxedProcess could not be created.
|
| static void OnSandboxedProcessStarted(JNIEnv*,
|
| jclass,
|
| jint client_context,
|
| jint handle) {
|
| StartSandboxedProcessCallback* callback =
|
| reinterpret_cast<StartSandboxedProcessCallback*>(client_context);
|
| - callback->Run(static_cast<base::ProcessHandle>(handle));
|
| + if (handle)
|
| + callback->Run(static_cast<base::ProcessHandle>(handle));
|
| delete callback;
|
| }
|
|
|
|
|