Add GCM check in status code metric collection. We also decided to collect registration success signal now.

BUG=284553

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250963 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 250963
Fix posix IPC channel hanging problem.

If a channel closes right before a send call, listeners might not be notified of
the problem, which can cause hangs. This CL fixes that and adds a test that makes
sure that this does not happen in the future.

This is cl/30133002 + a memory leak fix.

BUG=338709

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250964 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 250964