Ignore OnConnected event if the job state is already CLOSED.
Ignore OnConnected event if the job state is already CLOSED.

There is a case while SocketStream is connecting, WebSocketJob is closed and SocketStream notifies it is connected.  In this case, we should just ignore OnConnected event.

BUG=47818
TEST=websocket/tests/url-with-credential.html

Review URL: http://codereview.chromium.org/2823034

git-svn-id: http://src.chromium.org/svn/trunk/src@51108 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: cd26b70c38d1252b6cee4951ad07dfe57834c3c6
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser