Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1553)

Unified Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java

Issue 1998483003: General cleanup on AppRTC Android Demo codebase (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove unused string that was accidentally added. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/examples/androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java
diff --git a/webrtc/examples/androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java b/webrtc/examples/androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java
index 14b723178b3e5b89843d7e004356920737b5c448..5f8a1fdfcfa9225abd7a097627e215d0113109f6 100644
--- a/webrtc/examples/androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java
+++ b/webrtc/examples/androidapp/src/org/appspot/apprtc/WebSocketChannelClient.java
@@ -65,9 +65,9 @@ public class WebSocketChannelClient {
* All events are dispatched from a looper executor thread.
*/
public interface WebSocketChannelEvents {
- public void onWebSocketMessage(final String message);
- public void onWebSocketClose();
- public void onWebSocketError(final String description);
+ void onWebSocketMessage(final String message);
+ void onWebSocketClose();
+ void onWebSocketError(final String description);
}
public WebSocketChannelClient(LooperExecutor executor, WebSocketChannelEvents events) {
@@ -113,7 +113,7 @@ public class WebSocketChannelClient {
Log.w(TAG, "WebSocket register() in state " + state);
return;
}
- Log.d(TAG, "Registering WebSocket for room " + roomID + ". CLientID: " + clientID);
+ Log.d(TAG, "Registering WebSocket for room " + roomID + ". ClientID: " + clientID);
JSONObject json = new JSONObject();
try {
json.put("cmd", "register");
@@ -159,7 +159,6 @@ public class WebSocketChannelClient {
}
break;
}
- return;
}
// This call can be used to send WebSocket messages before WebSocket
@@ -171,7 +170,7 @@ public class WebSocketChannelClient {
public void disconnect(boolean waitForComplete) {
checkIfCalledOnValidThread();
- Log.d(TAG, "Disonnect WebSocket. State: " + state);
+ Log.d(TAG, "Disconnect WebSocket. State: " + state);
if (state == WebSocketConnectionState.REGISTERED) {
// Send "bye" to WebSocket server.
send("{\"type\": \"bye\"}");
@@ -200,7 +199,7 @@ public class WebSocketChannelClient {
}
}
}
- Log.d(TAG, "Disonnecting WebSocket done.");
+ Log.d(TAG, "Disconnecting WebSocket done.");
}
private void reportError(final String errorMessage) {

Powered by Google App Engine
This is Rietveld 408576698