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

Unified Diff: chrome/browser/resources/chromeos/chromevox/braille/liblouis.js

Issue 1028583002: Chromevox: kill braille translator log spam. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: chrome/browser/resources/chromeos/chromevox/braille/liblouis.js
diff --git a/chrome/browser/resources/chromeos/chromevox/braille/liblouis.js b/chrome/browser/resources/chromeos/chromevox/braille/liblouis.js
index 2d66b84de3d1de4a99338fab1456b9c50a63a7cc..f56a8a7f218402a130cdfc75f3bd78d261cda17c 100644
--- a/chrome/browser/resources/chromeos/chromevox/braille/liblouis.js
+++ b/chrome/browser/resources/chromeos/chromevox/braille/liblouis.js
@@ -50,6 +50,13 @@ cvox.LibLouis = function(nmfPath, opt_tablesDir) {
/**
+ * Set to {@code true} to enable debug logging of RPC messages.
+ * @type {boolean}
+ */
+cvox.LibLouis.DEBUG = false;
+
+
+/**
* Attaches the Native Client wrapper to the DOM as a child of the provided
* element, assumed to already be in the document.
* @param {!Element} elem Desired parent element of the instance.
@@ -145,7 +152,7 @@ cvox.LibLouis.prototype.rpc_ =
message['message_id'] = messageId;
message['command'] = command;
var json = JSON.stringify(message);
- if (goog.DEBUG) {
+ if (cvox.LibLouis.DEBUG) {
window.console.debug('RPC -> ' + json);
}
this.embedElement_.postMessage(json);
@@ -180,7 +187,7 @@ cvox.LibLouis.prototype.onInstanceError_ = function(e) {
* @private
*/
cvox.LibLouis.prototype.onInstanceMessage_ = function(e) {
- if (goog.DEBUG) {
+ if (cvox.LibLouis.DEBUG) {
window.console.debug('RPC <- ' + e.data);
}
var message = /** @type {!Object} */ (JSON.parse(e.data));
« 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