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

Unified Diff: ui/file_manager/video_player/js/video_player_metrics.js

Issue 1912493003: Video Player: Stop using Cast API shared module. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update an error message. Created 4 years, 8 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 | « ui/file_manager/video_player/js/cast/caster.js ('k') | ui/file_manager/video_player/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/video_player/js/video_player_metrics.js
diff --git a/ui/file_manager/video_player/js/video_player_metrics.js b/ui/file_manager/video_player/js/video_player_metrics.js
index d49ddd6528ceb5b4313f49f369c8e84dc5d52eee..151b4cb94df2c96eeb8f8971fac73d96e4d840fe 100644
--- a/ui/file_manager/video_player/js/video_player_metrics.js
+++ b/ui/file_manager/video_player/js/video_player_metrics.js
@@ -14,26 +14,6 @@
var metrics = metricsBase;
/**
- * Values for "VideoPlayer.CastAPIExtensionStaus" metrics.
- * @enum {number}
- */
-metrics.CAST_API_EXTENSION_STATUS = {
- // Cast API extension is not loaded since the cast extension, which is requred
- // by the cast API extension, is not installed or load failed.
- SKIPPED: 0,
- // Installation of Cast API extension is failed.
- INSTALLATION_FAILED: 1,
- // Load of Cast API extension is failed.
- LOAD_FAILED: 2,
- // Cast API extension is newly installed and loaded.
- INSTALLED_AND_LOADED: 3,
- // Cast API extension is loaded.
- LOADED: 4,
- // (sentinel)
- MAX_VALUE: 5,
-};
-
-/**
* Values for "VideoPlayer.PlayType" metrics.
* @enum {number}
*/
@@ -57,21 +37,6 @@ metrics.hasValue_ = function(values, value) {
};
/**
- * Record "VideoPlayer.CastAPIExtensionStatsu" metrics.
- * @param {metrics.CAST_API_EXTENSION_STATUS} status Status to be recorded.
- */
-metrics.recordCastAPIExtensionStatus = function(status) {
- if (!metrics.hasValue_(metrics.CAST_API_EXTENSION_STATUS, status)) {
- console.error('The given value "' + status + '" is invalid.');
- return;
- }
-
- metrics.recordEnum('CastAPIExtensionStatus',
- status,
- metrics.CAST_API_EXTENSION_STATUS.MAX_VALUE);
-};
-
-/**
* Record "VideoPlayer.NumberOfCastDevices" metrics.
* @param {number} number Value to be recorded.
*/
« no previous file with comments | « ui/file_manager/video_player/js/cast/caster.js ('k') | ui/file_manager/video_player/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698