| Index: chrome/browser/resources/hotword/logging.js
|
| diff --git a/chrome/browser/resources/hotword/logging.js b/chrome/browser/resources/hotword/logging.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..9ab9a1240ba2e64e990003ed7c7fd1d98d2c05d1
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/hotword/logging.js
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +cr.define('hotword', function() {
|
| + 'use strict';
|
| +
|
| + /**
|
| + * Wrapper around console.log allowing debug log message to be enabled during
|
| + * development.
|
| + */
|
| + function debug() {
|
| + if (hotword.DEBUG || window.localStorage['hotword.DEBUG'])
|
| + console.log.apply(console, arguments);
|
| + }
|
| +
|
| + return {
|
| + DEBUG: false,
|
| + debug: debug
|
| + };
|
| +});
|
|
|