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

Unified Diff: remoting/webapp/client_plugin_async.js

Issue 10262013: [Chromoting] Fix two typos in the webapp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use camelCase. Created 8 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/client_plugin_async.js
diff --git a/remoting/webapp/client_plugin_async.js b/remoting/webapp/client_plugin_async.js
index 43b111022a465b71e08b22999bbe74fd69418b87..211502c071e7657cb137e4caeded3c12621993a4 100644
--- a/remoting/webapp/client_plugin_async.js
+++ b/remoting/webapp/client_plugin_async.js
@@ -85,14 +85,14 @@ remoting.ClientPluginAsync.prototype.API_VERSION_ = 6;
remoting.ClientPluginAsync.prototype.API_MIN_VERSION_ = 5;
/**
- * @param {string} message_str Message from the plugin.
+ * @param {string} messageStr Message from the plugin.
*/
remoting.ClientPluginAsync.prototype.handleMessage_ = function(messageStr) {
var message = /** @type {{method:string, data:Object.<string,string>}} */
jsonParseSafe(messageStr);
if (!message || !('method' in message) || !('data' in message)) {
- console.error('Received invalid message from the plugin: ' + message_str);
+ console.error('Received invalid message from the plugin: ' + messageStr);
return;
}
@@ -102,13 +102,13 @@ remoting.ClientPluginAsync.prototype.handleMessage_ = function(messageStr) {
this.plugin.height = 0;
if (typeof message.data['apiVersion'] != 'number' ||
typeof message.data['apiMinVersion'] != 'number') {
- console.error('Received invalid hello message: ' + message_str);
+ console.error('Received invalid hello message: ' + messageStr);
return;
}
this.pluginApiVersion_ = /** @type {number} */ message.data['apiVersion'];
if (this.pluginApiVersion_ >= 7) {
if (typeof message.data['apiFeatures'] != 'string') {
- console.error('Received invalid hello message: ' + message_str);
+ console.error('Received invalid hello message: ' + messageStr);
return;
}
this.pluginApiFeatures_ =
@@ -127,13 +127,13 @@ remoting.ClientPluginAsync.prototype.handleMessage_ = function(messageStr) {
}
} else if (message.method == 'sendOutgoingIq') {
if (typeof message.data['iq'] != 'string') {
- console.error('Received invalid sendOutgoingIq message: ' + message_str);
+ console.error('Received invalid sendOutgoingIq message: ' + messageStr);
return;
}
this.onOutgoingIqHandler(message.data['iq']);
} else if (message.method == 'logDebugMessage') {
if (typeof message.data['message'] != 'string') {
- console.error('Received invalid logDebugMessage message: ' + message_str);
+ console.error('Received invalid logDebugMessage message: ' + messageStr);
return;
}
this.onDebugMessageHandler(message.data['message']);
@@ -142,7 +142,7 @@ remoting.ClientPluginAsync.prototype.handleMessage_ = function(messageStr) {
!(message.data['state'] in remoting.ClientSession.State) ||
typeof message.data['error'] != 'string') {
console.error('Received invalid onConnectionState message: ' +
- message_str);
+ messageStr);
return;
}
@@ -160,7 +160,7 @@ remoting.ClientPluginAsync.prototype.handleMessage_ = function(messageStr) {
} else if (message.method == 'onDesktopSize') {
if (typeof message.data['width'] != 'number' ||
typeof message.data['height'] != 'number') {
- console.error('Received invalid onDesktopSize message: ' + message_str);
+ console.error('Received invalid onDesktopSize message: ' + messageStr);
return;
}
this.desktopWidth = /** @type {number} */ message.data['width'];
@@ -174,7 +174,7 @@ remoting.ClientPluginAsync.prototype.handleMessage_ = function(messageStr) {
typeof message.data['decodeLatency'] != 'number' ||
typeof message.data['renderLatency'] != 'number' ||
typeof message.data['roundtripLatency'] != 'number') {
- console.error('Received incorrect onPerfStats message: ' + message_str);
+ console.error('Received incorrect onPerfStats message: ' + messageStr);
return;
}
this.perfStats_ =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698