| Index: remoting/host/chromoting_host_context.cc
|
| diff --git a/remoting/host/chromoting_host_context.cc b/remoting/host/chromoting_host_context.cc
|
| index 2f394ac948195a5ee5630e9ec64639b9cf8098b2..0d51f85e82f422e83e45896f1c12bf402d1d5698 100644
|
| --- a/remoting/host/chromoting_host_context.cc
|
| +++ b/remoting/host/chromoting_host_context.cc
|
| @@ -51,14 +51,13 @@ scoped_ptr<ChromotingHostContext> ChromotingHostContext::Create(
|
| DCHECK(ui_task_runner->BelongsToCurrentThread());
|
|
|
| scoped_ptr<ChromotingHostContext> context(
|
| - new ChromotingHostContext(ui_task_runner));
|
| - if (!context->audio_task_runner_ ||
|
| - !context->file_task_runner_ ||
|
| - !context->input_task_runner_ ||
|
| - !context->network_task_runner_ ||
|
| - !context->video_capture_task_runner_ ||
|
| - !context->video_encode_task_runner_ ||
|
| - !context->url_request_context_getter_) {
|
| + new ChromotingHostContext(ui_task_runner.get()));
|
| + if (!context->audio_task_runner_.get() || !context->file_task_runner_.get() ||
|
| + !context->input_task_runner_.get() ||
|
| + !context->network_task_runner_.get() ||
|
| + !context->video_capture_task_runner_.get() ||
|
| + !context->video_encode_task_runner_.get() ||
|
| + !context->url_request_context_getter_.get()) {
|
| context.reset();
|
| }
|
|
|
|
|