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

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: Rebase. 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..92fa4210d98b97e5e2ca9ddf81f76e6415cd826a 100644
--- a/remoting/webapp/js_proto/chrome_mocks.js
+++ b/remoting/webapp/js_proto/chrome_mocks.js
@@ -246,6 +246,13 @@ chromeMocks.Identity.prototype.mock$clearToken = function() {
/** @type {chromeMocks.Identity} */
chromeMocks.identity;
+/** @constructor */
+chromeMocks.MetricsPrivate = function() {};
+
+chromeMocks.MetricsPrivate.prototype.recordValue = function() {};
+
+/** @type {chromeMocks.MetricsPrivate} */
+chromeMocks.metricsPrivate;
/** @constructor */
chromeMocks.I18n = function() {};
@@ -288,8 +295,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