Fix ChromeNotifierServiceTest.AddNewSendingServicesTest official build.

Sometimes the channel is misreported no certain builders.

BUG=338426

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248059 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 248059
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.

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

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