Fix crash in NativeMessageProcessHost
commitd19b0657cafb67b266c45bac36bc4ba87a04596a
authorkelvinp <kelvinp@chromium.org>
Fri, 10 Oct 2014 01:08:23 +0000 (9 18:08 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 10 Oct 2014 01:08:40 +0000 (10 01:08 +0000)
tree2a2d09bfcb796fe71f151e4bedfb3eb4fc245ac8
parent6e7ce491a74481f8e3d7293ebb0ae58d62564526
Fix crash in NativeMessageProcessHost

We should initialize the |client_| pointer before launching the host process,
as the OnHostProcessLaunched() callback dereferences the |client_| pointer.

BUG=421500

Review URL: https://codereview.chromium.org/642163002

Cr-Commit-Position: refs/heads/master@{#299030}
chrome/browser/extensions/api/messaging/native_message_process_host.cc