Commit f6429330 authored by Adam Rice's avatar Adam Rice Committed by Commit Bot

Rename variables named web_socket*

and "web_socket_scope". Since WebSocket is one word, these should be
"websocket" and "websocket_scope". Fix them.

blink: :DOMWebSocket and its tests contained variables name "web_socket"
Change-Id: I0d75c7a45a2a2dc85253be1387a80af78eda2c3a
Reviewed-on: https://chromium-review.googlesource.com/1098747Reviewed-by: default avatarYutaka Hirano <yhirano@chromium.org>
Commit-Queue: Adam Rice <ricea@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567247}
parent 81698ba1
...@@ -263,25 +263,25 @@ DOMWebSocket* DOMWebSocket::Create(ExecutionContext* context, ...@@ -263,25 +263,25 @@ DOMWebSocket* DOMWebSocket::Create(ExecutionContext* context,
return nullptr; return nullptr;
} }
DOMWebSocket* web_socket = new DOMWebSocket(context); DOMWebSocket* websocket = new DOMWebSocket(context);
web_socket->PauseIfNeeded(); websocket->PauseIfNeeded();
if (protocols.IsNull()) { if (protocols.IsNull()) {
Vector<String> protocols_vector; Vector<String> protocols_vector;
web_socket->Connect(url, protocols_vector, exception_state); websocket->Connect(url, protocols_vector, exception_state);
} else if (protocols.IsString()) { } else if (protocols.IsString()) {
Vector<String> protocols_vector; Vector<String> protocols_vector;
protocols_vector.push_back(protocols.GetAsString()); protocols_vector.push_back(protocols.GetAsString());
web_socket->Connect(url, protocols_vector, exception_state); websocket->Connect(url, protocols_vector, exception_state);
} else { } else {
DCHECK(protocols.IsStringSequence()); DCHECK(protocols.IsStringSequence());
web_socket->Connect(url, protocols.GetAsStringSequence(), exception_state); websocket->Connect(url, protocols.GetAsStringSequence(), exception_state);
} }
if (exception_state.HadException()) if (exception_state.HadException())
return nullptr; return nullptr;
return web_socket; return websocket;
} }
void DOMWebSocket::Connect(const String& url, void DOMWebSocket::Connect(const String& url,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment