Support delegate deleting itself from OnError
Modify SocketStream::Finish so that it works correctly if the delegate
calls DetachDelegate() and then deletes itself from within the OnError()
callback.
Test the delegate deleting itself in OnError().
SocketStream::Delegate is permitted to call
SocketStream::DetachDelegate() and then delete itself from within the
OnError method. Ensure this works correctly.
BUG=
TEST=net_unittests layout tests
Review URL: https://chromiumcodereview.appspot.com/
15989003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202414 0039d316-1c4b-4281-b951-d872f2087c98