diff options
author | ricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-10 13:16:16 +0000 |
---|---|---|
committer | ricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-10 13:16:16 +0000 |
commit | 86ec5550eb81c98bdebe8f61dfe13c2ee24b2b96 (patch) | |
tree | 957b761793127c6395ee31534688dc998f664559 /content/browser/renderer_host/websocket_dispatcher_host.cc | |
parent | e802c0f7ebdf5984007bec3e4bb6512d124e993e (diff) | |
download | chromium_src-86ec5550eb81c98bdebe8f61dfe13c2ee24b2b96.zip chromium_src-86ec5550eb81c98bdebe8f61dfe13c2ee24b2b96.tar.gz chromium_src-86ec5550eb81c98bdebe8f61dfe13c2ee24b2b96.tar.bz2 |
Pass was_clean from WebSocketChannel to renderer
Previously, the browser always set |was_clean| to true when it sent an
OnDropChannel message to the renderer. Set the value correctly in
WebSocketChannel and pass it through to WebSocketDispatcherHost.
BUG=341343
Review URL: https://codereview.chromium.org/149793006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250082 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/websocket_dispatcher_host.cc')
-rw-r--r-- | content/browser/renderer_host/websocket_dispatcher_host.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/browser/renderer_host/websocket_dispatcher_host.cc b/content/browser/renderer_host/websocket_dispatcher_host.cc index ece71cb..0d5383a 100644 --- a/content/browser/renderer_host/websocket_dispatcher_host.cc +++ b/content/browser/renderer_host/websocket_dispatcher_host.cc @@ -154,9 +154,9 @@ WebSocketHostState WebSocketDispatcherHost::NotifyFailure( WebSocketHostState WebSocketDispatcherHost::DoDropChannel( int routing_id, + bool was_clean, uint16 code, const std::string& reason) { - bool was_clean = true; if (SendOrDrop( new WebSocketMsg_DropChannel(routing_id, was_clean, code, reason)) == WEBSOCKET_HOST_DELETED) |