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

Unified Diff: remoting/webapp/js_proto/chrome_mocks.js

Issue 1305453002: Add UMA stats for Chromoting connection details. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include all SessionState enums in UMA enumerated-histogram. Cleanup plugin code. Created 5 years, 4 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: remoting/webapp/js_proto/chrome_mocks.js
diff --git a/remoting/webapp/js_proto/chrome_mocks.js b/remoting/webapp/js_proto/chrome_mocks.js
index a3d8c51d9b02c4962f9bd4febb18b28d2e425a8a..134a4e9677e70b283f93fa663983d7f8498aee27 100644
--- a/remoting/webapp/js_proto/chrome_mocks.js
+++ b/remoting/webapp/js_proto/chrome_mocks.js
@@ -246,6 +246,15 @@ chromeMocks.Identity.prototype.mock$clearToken = function() {
/** @type {chromeMocks.Identity} */
chromeMocks.identity;
+/** @constructor */
+chromeMocks.MetricsPrivate = function() {
+};
kelvinp 2015/08/21 21:32:09 Nit: put }; on the same line with { Same below
anandc 2015/08/21 21:56:10 Done.
+
+chromeMocks.MetricsPrivate.prototype.recordValue = function() {
+};
+
+/** @type {chromeMocks.MetricsPrivate} */
+chromeMocks.metricsPrivate;
/** @constructor */
chromeMocks.I18n = function() {};
@@ -288,8 +297,9 @@ chromeMocks.activate = function() {
chromeMocks.i18n = new chromeMocks.I18n();
chromeMocks.identity = new chromeMocks.Identity();
+ chromeMocks.metricsPrivate = new chromeMocks.MetricsPrivate();
- ['identity', 'i18n', 'runtime', 'storage'].forEach(
+ ['identity', 'i18n', 'runtime', 'storage', 'metricsPrivate'].forEach(
function(/** string */ component) {
if (!chromeMocks[component]) {
throw new Error('No mocks defined for chrome.' + component);

Powered by Google App Engine
This is Rietveld 408576698