Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / resources / ntp4 / logging.js
index b071a77..1edb7a4 100644 (file)
@@ -13,12 +13,12 @@ var eventLog = [];
 /**
  * Logs an event.
  * @param {string} name The name of the event (can be any string).
- * @param {boolean} shouldLogTime If true, the event is used for benchmarking
- *     and the time is logged. Otherwise, just push the event on the event
- *     stack.
+ * @param {boolean=} opt_shouldLogTime If true, the event is used for
+ *     benchmarking and the time is logged. Otherwise, just push the event on
+ *     the event stack.
  */
-function logEvent(name, shouldLogTime) {
-  if (shouldLogTime)
+function logEvent(name, opt_shouldLogTime) {
+  if (opt_shouldLogTime)
     chrome.send('metricsHandler:logEventTime', [name]);
   eventLog.push([name, Date.now()]);
 }